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

Add Vulkan 1.3 command stubs #1722

Merged
merged 1 commit into from
Sep 24, 2022

Conversation

spnda
Copy link
Collaborator

@spnda spnda commented Sep 22, 2022

Fixes #1708.

Just like the Vulkan lib that comes with the SDK, MoltenVK should expose stubs of Vulkan core functions to use while statically linking MoltenVK directly. Some libraries and applications expect these symbols to be available, though will still conditionally use them based on the physical device's properties. Using these functions in an application would be UB as the device reports Vulkan 1.1, so there's really nothing lost here.

Copy link
Contributor

@billhollings billhollings left a comment

Choose a reason for hiding this comment

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

Thanks for the submission. This is a creative and interesting approach. I've identified some fixes and additions I think are needed.

MoltenVK/MoltenVK/Vulkan/vulkan.mm Outdated Show resolved Hide resolved
MoltenVK/MoltenVK/Vulkan/vulkan.mm Outdated Show resolved Hide resolved
MoltenVK/MoltenVK/Vulkan/vulkan.mm Outdated Show resolved Hide resolved
MoltenVK/MoltenVK/Vulkan/vulkan.mm Outdated Show resolved Hide resolved
@spnda spnda force-pushed the provide_1_3_stubs branch 2 times, most recently from 7c51922 to 754837a Compare September 24, 2022 21:41
@billhollings
Copy link
Contributor

billhollings commented Sep 24, 2022

If you update from master, it should fix the breaking CI build for Xcode 11.7.

PR #1724 included a fix for that.

[edit]: NM...looks like there are other breakages as well. 😉

Copy link
Contributor

@billhollings billhollings left a comment

Choose a reason for hiding this comment

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

LGTM now.

@billhollings billhollings merged commit 77b3cc0 into KhronosGroup:master Sep 24, 2022
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.

Defined VK_VERSION_1_3 causes linker problems while building for iOS
4 participants