-
Notifications
You must be signed in to change notification settings - Fork 196
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
PhysicalDeviceFeatures2Builder::push_next()? #325
Comments
relates to #305 |
Thinking about it, I don't know what cause PhysicalDeviceFeatures2 to ever be used as a branch. It can be, but it's main usage would be for get_physical_device_features2(). Afterwards DeviceCreateInfo.p_enabled_features == PhysicalDeviceFeatures2.features, so there is currently no reason to have PhysicalDeviceFeatures2 be a branch of DeviceCreateInfo. |
I just hit this issue too. I think this is a functional workaround? let mut descriptor_indexing_features = ash::vk::PhysicalDeviceDescriptorIndexingFeaturesEXT::default();
let mut features_v2 = vk::PhysicalDeviceFeatures2::default();
unsafe {
features_v2.p_next = &mut descriptor_indexing_features as *mut _ as *mut std::ffi::c_void;
instance.get_physical_device_features2(device, &mut features_v2)
}; |
This function is now available since #305 (in Ash release 0.33) where we finally cleaned up how |
I'm trying to get_physical_device_features2() for PhysicalDeviceDescriptorIndexingFeatures.
Edit: maybe VkPhysicalDeviceVulkan12Features? Same issue.
The text was updated successfully, but these errors were encountered: