From 89af50a76c1cf98f800a6ff8ece5c31f3ff5504c Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 6 Oct 2020 18:59:25 +0100 Subject: [PATCH] Force depth writes when fetching shader output in pixel history * If depth is disabled this will do nothing, but if depth is enabled this ensures we actually get the depth value from the fragment. --- renderdoc/driver/vulkan/vk_pixelhistory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/driver/vulkan/vk_pixelhistory.cpp b/renderdoc/driver/vulkan/vk_pixelhistory.cpp index 4b56050e4..2f0d44613 100644 --- a/renderdoc/driver/vulkan/vk_pixelhistory.cpp +++ b/renderdoc/driver/vulkan/vk_pixelhistory.cpp @@ -2567,6 +2567,7 @@ struct VulkanPixelHistoryPerFragmentCallback : VulkanPixelHistoryCallback { ds->depthBoundsTestEnable = VK_FALSE; + ds->depthWriteEnable = VK_TRUE; ds->depthCompareOp = VK_COMPARE_OP_ALWAYS; }