Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

partyalarm
Copy link

I have made it possible to build on a Mac.
I also added the initialization process that is now required by the latest MoltenVK.

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Vulkan.RawConstants.VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR
// does not exist
//
// #define VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR = 0x00000001
Copy link
Collaborator

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.

Copy link
Author

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.
@partyalarm partyalarm closed this Jan 11, 2023
@partyalarm partyalarm reopened this Jan 11, 2023
@partyalarm
Copy link
Author

NeoDemo is now working.

@Tarcontar
Copy link

Hi what is the status of this? Any chance this will be merged soon? Or can I help out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants