mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 00:34:35 +00:00
Fixes bug with 1.1/1.2 features not being appended to the pNext chain properly.
This commit is contained in:
parent
903fdfe87b
commit
1b6e09a04a
@ -1231,10 +1231,15 @@ detail::Result<PhysicalDevice> PhysicalDeviceSelector::select() const {
|
||||
out_device.physical_device = selected_device.phys_device;
|
||||
out_device.surface = instance_info.surface;
|
||||
out_device.features = criteria.required_features;
|
||||
out_device.features_11 = criteria.required_features_11;
|
||||
out_device.features_11.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES;
|
||||
out_device.features_12 = criteria.required_features_12;
|
||||
out_device.features_12.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
|
||||
out_device.properties = selected_device.device_properties;
|
||||
out_device.memory_properties = selected_device.mem_properties;
|
||||
out_device.queue_families = selected_device.queue_families;
|
||||
out_device.defer_surface_initialization = criteria.defer_surface_initialization;
|
||||
out_device.instance_version = instance_info.version;
|
||||
|
||||
out_device.extensions_to_enable.insert(out_device.extensions_to_enable.end(),
|
||||
criteria.required_extensions.begin(),
|
||||
|
Loading…
Reference in New Issue
Block a user