Fix linear depth image transition validation error

This commit is contained in:
Magnus Norddahl 2025-06-22 06:57:17 +02:00
commit 0d7abc52a4

View file

@ -280,6 +280,10 @@ void VkRenderBuffers::CreateSceneLinearDepth(int width, int height)
.Image(SceneLinearDepth.Image.get(), VK_FORMAT_R32_SFLOAT)
.DebugName("VkRenderBuffers.SceneLinearDepthView")
.Create(fb->GetDevice());
VkImageTransition()
.AddImage(&SceneLinearDepth, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, true)
.Execute(fb->GetCommands()->GetDrawCommands());
}
void VkRenderBuffers::CreateSceneZMinMax(int width, int height)