Fix linear depth image transition validation error
This commit is contained in:
parent
045deae316
commit
0d7abc52a4
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue