Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Image layout specified at vkUpdateDescriptorSets() time doesn't match actual image layout at time descriptor is used. #2

Open
ghost opened this issue Mar 28, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 28, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants