From 0f5d920485412dc44f11ab90651a833c6a6ef5ef Mon Sep 17 00:00:00 2001 From: Squareys Date: Wed, 2 Nov 2016 20:31:38 +0100 Subject: [PATCH] Prefer 24 bit depth components Signed-off-by: Squareys --- src/Magnum/Vk/PhysicalDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Vk/PhysicalDevice.cpp b/src/Magnum/Vk/PhysicalDevice.cpp index ee139373c..66beafa5a 100644 --- a/src/Magnum/Vk/PhysicalDevice.cpp +++ b/src/Magnum/Vk/PhysicalDevice.cpp @@ -41,9 +41,9 @@ VkFormat PhysicalDevice::getSupportedDepthFormat() { // Since all depth formats may be optional, we need to find a suitable depth format to use // Start with the highest precision packed format std::vector depthFormats = { + VK_FORMAT_D24_UNORM_S8_UINT, VK_FORMAT_D32_SFLOAT_S8_UINT, VK_FORMAT_D32_SFLOAT, - VK_FORMAT_D24_UNORM_S8_UINT, VK_FORMAT_D16_UNORM_S8_UINT, VK_FORMAT_D16_UNORM };