vkd3d: Use VK_IMAGE_LAYOUT_UNDEFINED for unused attachments.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
11bdc76aa0
commit
0dc0d75967
|
@ -1075,7 +1075,7 @@ static HRESULT vkd3d_render_pass_cache_create_pass_locked(struct vkd3d_render_pa
|
|||
if (!key->vk_formats[index])
|
||||
{
|
||||
attachment_references[index].attachment = VK_ATTACHMENT_UNUSED;
|
||||
attachment_references[index].layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
|
||||
attachment_references[index].layout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue