vkd3d: Use VK_IMAGE_LAYOUT_UNDEFINED for unused attachments.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2020-11-19 10:53:24 +01:00
parent 11bdc76aa0
commit 0dc0d75967
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}