From a5ff474793aa23bb444c511ba8da819fdb5f3d01 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 13 Jul 2019 14:32:33 +0800 Subject: [PATCH] =?UTF-8?q?PhysicalDevice=E4=B8=AD=E7=9A=84=E5=80=99?= =?UTF-8?q?=E9=80=89=E7=B1=BB=E5=9E=8B=E6=94=B9=E4=B8=BA=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=AE=8F=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RenderDevice/Vulkan/VKPhysicalDevice.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/RenderDevice/Vulkan/VKPhysicalDevice.cpp b/src/RenderDevice/Vulkan/VKPhysicalDevice.cpp index b423e3ec..5d80fa5d 100644 --- a/src/RenderDevice/Vulkan/VKPhysicalDevice.cpp +++ b/src/RenderDevice/Vulkan/VKPhysicalDevice.cpp @@ -110,10 +110,12 @@ VkFormat PhysicalDevice::GetDepthFormat(bool lower_to_high)const { constexpr VkFormat depthFormats[] = { - VK_FORMAT_D16_UNORM, - VK_FORMAT_D24_UNORM_S8_UINT, - VK_FORMAT_D32_SFLOAT, - VK_FORMAT_D32_SFLOAT_S8_UINT + FMT_D16UN, + FMT_X8_D24, + FMT_D16UN_S8U, + FMT_D24UN_S8U, + FMT_D32F, + FMT_D32F_S8U }; VkFormat result=VK_FORMAT_UNDEFINED; @@ -136,9 +138,9 @@ VkFormat PhysicalDevice::GetDepthStencilFormat(bool lower_to_high)const { constexpr VkFormat depthStencilFormats[] = { - VK_FORMAT_D16_UNORM_S8_UINT, - VK_FORMAT_D24_UNORM_S8_UINT, - VK_FORMAT_D32_SFLOAT_S8_UINT + FMT_D16UN_S8U, + FMT_D24UN_S8U, + FMT_D32F_S8U }; VkFormat result=VK_FORMAT_UNDEFINED;