|
|
@ -974,7 +974,6 @@ bool Device::GetSuitability(bool requires_swapchain) { |
|
|
// Configure properties.
|
|
|
// Configure properties.
|
|
|
VkPhysicalDeviceVulkan12Features features_1_2{}; |
|
|
VkPhysicalDeviceVulkan12Features features_1_2{}; |
|
|
VkPhysicalDeviceVulkan13Features features_1_3{}; |
|
|
VkPhysicalDeviceVulkan13Features features_1_3{}; |
|
|
VkPhysicalDeviceVulkan14Features features_1_4{}; |
|
|
|
|
|
|
|
|
|
|
|
// Configure properties.
|
|
|
// Configure properties.
|
|
|
properties.properties = physical.GetProperties(); |
|
|
properties.properties = physical.GetProperties(); |
|
|
@ -1053,13 +1052,10 @@ bool Device::GetSuitability(bool requires_swapchain) { |
|
|
if (instance_version >= VK_API_VERSION_1_2) { |
|
|
if (instance_version >= VK_API_VERSION_1_2) { |
|
|
features_1_2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES; |
|
|
features_1_2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES; |
|
|
features_1_3.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES; |
|
|
features_1_3.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES; |
|
|
features_1_4.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_4_FEATURES; |
|
|
|
|
|
|
|
|
|
|
|
features_1_2.pNext = &features_1_3; |
|
|
features_1_2.pNext = &features_1_3; |
|
|
features_1_3.pNext = &features_1_4; |
|
|
|
|
|
|
|
|
|
|
|
*next = &features_1_2; |
|
|
*next = &features_1_2; |
|
|
// next = &features_1_4.pNext;
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Test all features we know about. If the feature is not available in core at our
|
|
|
// Test all features we know about. If the feature is not available in core at our
|
|
|
|