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
Build on mac and initialize MoltenVK #465
base: master
Are you sure you want to change the base?
Conversation
@@ -506,6 +506,20 @@ private void CreateInstance(bool debug, VulkanDeviceOptions options) | |||
} | |||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) | |||
{ | |||
// The new MoltenVK now requires the following code |
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.
src/Veldrid/Vk/VkGraphicsDevice.cs
Outdated
// Vulkan.RawConstants.VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR | ||
// does not exist | ||
// | ||
// #define VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR = 0x00000001 |
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.
nit: I'd prefer if this was an actual constant in the code and referenced in the assignment on 520.
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.
I think this constant should be added to the Vk project, not the Veldrid project.
However, I feel that this would have a large impact.
NeoDemo now works with MoltenVK.
NeoDemo is now working. |
Hi what is the status of this? Any chance this will be merged soon? Or can I help out? |
I have made it possible to build on a Mac.
I also added the initialization process that is now required by the latest MoltenVK.