Correct depth image layout

This commit is contained in:
hodasemi 2023-03-24 14:13:04 +01:00
parent 44c0d1e353
commit 1976af0166

View file

@ -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)?