Clamp vulkan physical devices to highest supported version

This commit is contained in:
baldurk
2024-12-13 16:48:17 +00:00
parent f12642dfd4
commit cd603f07dc
@@ -81,6 +81,10 @@ void ClampPhysDevAPIVersion(VkPhysicalDeviceProperties *pProperties, VkPhysicalD
pProperties->apiVersion = VK_API_VERSION_1_2;
}
}
// clamp to highest supported API version, currently vulkan 1.3, because loader no longer does this for us
if(pProperties->apiVersion > VK_API_VERSION_1_3)
pProperties->apiVersion = VK_API_VERSION_1_3;
}
void WrappedVulkan::vkGetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice,