From c5f971b660bcb4c9da6306ee6d6cfa6d928bc2a5 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 18 Oct 2020 18:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9renderpass=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=B0=86depth=E7=BC=93=E5=86=B2=E5=8C=BA=E5=9C=A8=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=BF=9D=E7=95=99=E4=B8=8B=E6=9D=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp b/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp index 0887d4d5..994e3be4 100644 --- a/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp +++ b/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp @@ -113,7 +113,7 @@ bool CreateAttachmentDescription(List &desc_list,const desc->finalLayout = depth_final_layout; desc->format = depth_format; - desc->storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; //深度缓冲区不用于显示也不用于下一帧,所以结束后不用保存 + desc->storeOp = VK_ATTACHMENT_STORE_OP_STORE; return(true); }