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

Fix enable_extension_features_if_present on Vulkan 1.0 #304

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

csmartdalton
Copy link
Contributor

This method should call vkGetPhysicalDeviceFeatures2KHR on Vulkan 1.0.

detail::vulkan_functions().fp_vkGetPhysicalDeviceFeatures2(physical_device, &actual_pdf2);
if (instance_version >= VKB_VK_API_VERSION_1_1) {
detail::vulkan_functions().fp_vkGetPhysicalDeviceFeatures2(physical_device, &actual_pdf2);
} else {
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
} else {
} else if (properties2_ext_enabled) {

Good catch! However, to be even more correct the physical device properties 2 extension must be enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies for the sloppiness! I think this iteration should be complete

@csmartdalton csmartdalton force-pushed the fix_1_0_extensions branch 2 times, most recently from 63c02d9 to b6c011e Compare August 27, 2024 18:23
This method should call vkGetPhysicalDeviceFeatures2KHR on Vulkan 1.0.
Copy link
Owner

@charles-lunarg charles-lunarg left a comment

Choose a reason for hiding this comment

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

Heck ya, did one better than my quick and dirty bool check.
Thanks for the contribution!

@charles-lunarg charles-lunarg merged commit 30a13b2 into charles-lunarg:main Aug 27, 2024
8 checks passed
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.

2 participants