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

vkGetInstanceProcAddr doesn't check api version of the instance #782

Open
charles-lunarg opened this issue Jan 5, 2022 · 0 comments
Open

vkGetInstanceProcAddr doesn't check api version of the instance #782

charles-lunarg opened this issue Jan 5, 2022 · 0 comments
Assignees

Comments

@charles-lunarg
Copy link
Collaborator

@charles-lunarg charles-lunarg commented Jan 5, 2022

If an application creates a 1.0 instance, it should not be able to query any 1.1+ core functions and should receive nullptr from vkGetInstanceProcAddr. However, the current behavior is that it will return any core function of any Vulkan version it was compiled with regardless of the API version of the created instance.

Since this behavior is likely being depended upon, any fix to this should maintain backwards compatibility. Thus, the solution is to first check if the API version of the created version is greater than a specific version (when the policy goes into effect) and if it is, only return functions who's version is supported by the API version the application was created with.

@charles-lunarg charles-lunarg self-assigned this Jan 5, 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

No branches or pull requests

1 participant