VulkanDevice: Fix incorrect struct type

This commit is contained in:
Stenzek
2025-10-27 14:56:25 +10:00
parent 2c2fb1d496
commit cff3ece1a7

View File

@@ -356,13 +356,13 @@ VulkanDevice::GPUList VulkanDevice::EnumerateGPUs(VkInstance instance)
if (vkGetPhysicalDeviceProperties2)
{
props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
driver_props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES;
Vulkan::AddPointerToChain(&props, &driver_props);
vkGetPhysicalDeviceProperties2(device, &props);
}
// just in case the chained version fails
props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
vkGetPhysicalDeviceProperties(device, &props.properties);
VkPhysicalDeviceFeatures available_features = {};