-
Notifications
You must be signed in to change notification settings - Fork 18
[Vulkan] Add support for MoltenVK on macOS #256
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
base: main
Are you sure you want to change the base?
Conversation
This gets Vulkan support working on macOS if the Vulkan SDK and MoltenVK are available. All current Vulkan tests except particle_life pass with Vulkan on macOS with DXC, and sign.32.test fails with Clang.
These changes are not actually needed, I just didn't have the linkage and paths correct.
This seems to be working, although it's not great that the library is in a weird SDK path...
@@ -176,6 +176,9 @@ DescriptorSets: | |||
# https://github.com/microsoft/DirectXShaderCompiler/issues/7512 | |||
# XFAIL: DXC-Vulkan | |||
|
|||
# No idea what is going on here, but Out1 and Out3 are coming through as 0's. | |||
# XFAIL: Clang && Vulkan-Darwin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Particle life is probably harder, but this one feel like we should have a follow up task to figure out what is going wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be good to link to issues in the XFAILs, but otherwise this looks good.
This refactores handling of extensions and layers to support variable arrays of extensions and layers based on querying for availability.
I converted this PR to a draft because as much as I would like this to work, it is failing like crazy across a lot of tests right now. It looks like bugs in the SPIRV->Metal translator as well as MoltenVK doing additional API validation that other drivers don't seem to be doing. I'll revisit this in the future, but for now... it's going to just sit around. |
This gets Vulkan support working on macOS if the Vulkan SDK and MoltenVK are available. All current Vulkan tests except particle_life pass with Vulkan on macOS with DXC, and sign.32.test fails with Clang.