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

Workaround pre-instance functions on Android #53

Merged
merged 3 commits into from
Jan 13, 2025
Merged

Conversation

solidpixel
Copy link
Contributor

Pre-instance functions are not supposed to be intercepted, but Android
doesn't implement the better interface for chainable pre-instance
functions. Trying to intercept the vkEnumerateInstanceExtensionProperties
so a layer can query what extensions are available will not work
for any layer other than the bottom layer in the stack.

If you have multiple layers in installed, the higher layers will try
to use vkGetInstanceProcAddr to get the function in the next layer
down and get the stub implementation for the extensions the layer
itself implements without reaching the driver.

@solidpixel solidpixel merged commit 2ced999 into main Jan 13, 2025
6 checks passed
@solidpixel solidpixel deleted the preinstance branch January 13, 2025 22:07
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.

1 participant