#Wrong layout when reusing swapchain, not otherwise

4 messages · Page 1 of 1 (latest)

quick oxide
#

This is within ReinitSwapchain, hope that's how it should be

#

Do i by any chance have to transition the images from the swapchain to present? But then why am I not getting the error when simply destroying and creating a brand new swapchain?

#

Maybe some deficit in the validation layer but then would be cool for someone to confirm

zinc ledge
#

Newly created swapchain images are in an undefined layout.
You shouldn't need to transition anything special because your rendering code should transition from UNDEFINED->COLOR_ATTACHMENT_OUPUT(or whatever layout you need) before using the swapchain image. And it is valid to use UNDEFINED as a source layout regardless of the actual layout of the image (although this will destroy the contents of the image, which is fine because the next thing you nromally do it clear it)