-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complies on macOS (10.14.6 Mojave) - but, Couldn't create a window / could not load Vulkan subsystem #10
Comments
Sorry,as far as I know, vulkan is not supported by Apple. |
There is https://github.com/gfx-rs/portability which is quite similar to moltenvk, and in theory, it can run vkquake3. Let me know if you have any results. |
@suijingfeng & @tolnaiz ... TL:DR .... I got it working 🥳 ... I'll shortly make a patch available ...
That is a bit ... "not quite of a correct statement" 🙃😉 ... like OpenGL, Vulkan and Metal are "just a specification" ... it's not Apple, nor Microsoft nor Linux-developers that have to write the code to add a specification support into a gfx cards driver ... it's the manufacturers (AMD, Nvidia, Intel ... etc etc) ... Like The Cherno explains in his OpenGL crash course on youtube - Welcome to OpenGL ... The question is: has AMD, Nvidia, et. al added Vulkan API specification support into the macOS driver that they provide to Apple? ... they've done so for Microsoft and their Linux drivers ... (or just make one available for us to download and install ourselves?) ... I don't know ... Though we know AMD has added Metal API specification into their gfx drivers for macOS ... and that is why (IMHO) MoltenVK has come about ... to create a translation layer for Vulkan API --to-the--> Metal API ... *yay all of us* Though, IMHO, all gfx manufacturers (yeah, Apple too, with their own Apple Silicon chips) should add Vulkan API specification to their drivers, and make them available... so developers can try to code once, and support many 🙏🏻 ... so we can once and for all say farewell to OpenGL 😉 R.I.P OpenGL...
TL:DR ... that is what I've done ... sort of ... or didn't have to do at all... After RTFM-ing and some more debugging it turns out that it was the SDL2 Library that is either to old and/or was compiled without Vulkan API support (for macOS...) ...
so I updated the SDL2 Lib to 2.0.12 and it works 👍🏻
@tolnaiz : ... the great news is that since 2018 Valve has made sure MoltenVK becomes Open Source and that it gets incorporated into the official Vulkan SDK maintained by the Khronos Group... And SDL2 also supports Vulkan ... meaning, one doesn't have to do much to have Vulkan support on all platforms SDL2 Lib has support for ... just make sure to compile the SDL2 library with Vulkan support, and not run an old SDL2 lib that doesn't support it (say older then some-time-in-2018-when-SDL2-added-support-for-it?...) |
It's indeed working with a newer SDL. Which also solves some assumably mac specific bugs (handling hidpi mode and mouse wheel problems). |
Pull request: #11 |
This [Fix] is merged, closing issue. |
So, I'm trying to get it working under macOS ... it compiles and runs very well with opengl renderer ... but when I switch to
Here is my crash log:
The text was updated successfully, but these errors were encountered: