Vulkan: Fix depth transition barrier.

This commit is contained in:
Unknown W. Brackets 2022-05-01 15:16:50 -07:00
parent 1dead5f095
commit 6c08a7a121

View File

@ -1130,7 +1130,7 @@ void VulkanQueueRunner::PerformRenderPass(const VKRStep &step, VkCommandBuffer c
}
if (step.render.framebuffer->depth.layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL) {
recordBarrier_.TransitionImage(
step.render.framebuffer->color.image,
step.render.framebuffer->depth.image,
0,
1,
VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT,