mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 08:44:36 +00:00
Added macro guard.
This commit is contained in:
parent
1b6e09a04a
commit
ef02739a10
@ -1231,10 +1231,12 @@ detail::Result<PhysicalDevice> PhysicalDeviceSelector::select() const {
|
|||||||
out_device.physical_device = selected_device.phys_device;
|
out_device.physical_device = selected_device.phys_device;
|
||||||
out_device.surface = instance_info.surface;
|
out_device.surface = instance_info.surface;
|
||||||
out_device.features = criteria.required_features;
|
out_device.features = criteria.required_features;
|
||||||
|
#if defined(VK_API_VERSION_1_2)
|
||||||
out_device.features_11 = criteria.required_features_11;
|
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_11.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES;
|
||||||
out_device.features_12 = criteria.required_features_12;
|
out_device.features_12 = criteria.required_features_12;
|
||||||
out_device.features_12.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
|
out_device.features_12.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
|
||||||
|
#endif
|
||||||
out_device.properties = selected_device.device_properties;
|
out_device.properties = selected_device.device_properties;
|
||||||
out_device.memory_properties = selected_device.mem_properties;
|
out_device.memory_properties = selected_device.mem_properties;
|
||||||
out_device.queue_families = selected_device.queue_families;
|
out_device.queue_families = selected_device.queue_families;
|
||||||
|
Loading…
Reference in New Issue
Block a user