VulkanSponza
VulkanSponza copied to clipboard
Image layout specified at vkUpdateDescriptorSets() time doesn't match actual image layout at time descriptor is used.
Hello,
It seems there is a mismatch between image layout in descriptor set and the actual image layout. The validation layers complain:
DS(ERROR): object: 0xaf50a78 type: 6 location: 583 msgCode: 6: vkCmdDraw(): Cannot use image 0xaf2ad88 with specific layout VK_IMAGE_LAYOUT_GENERAL that doesn't match the actual current layout VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL.
DS(ERROR): object: 0xaf14d58 type: 23 location: 1187 msgCode: 61: Descriptor set 0xaf14d58 encountered the following validation error at vkCmdDraw() time: Image layout specified at vkUpdateDescriptorSets() time doesn't match actual image layout at time descriptor is used. See previous error callback for specific details.
It seems the image subresource is sampled(?) as if GENERAL layout, while it was transitioned previously to VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL. This is undefined, causes corruptions for me.