Correct depth image layout
This commit is contained in:
parent
44c0d1e353
commit
1976af0166
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ impl CustomTarget {
|
|||
|
||||
match aspect {
|
||||
VK_IMAGE_ASPECT_DEPTH_BIT => {
|
||||
Image::convert_layout(&image, VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL)?
|
||||
Image::convert_layout(&image, VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL)?
|
||||
}
|
||||
VK_IMAGE_ASPECT_COLOR_BIT => {
|
||||
Image::convert_layout(&image, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL)?
|
||||
|
|
Loading…
Reference in a new issue