I have an imported external buffer, which starts out with PREINITIALIZED layout, which is then switched to TRANSFER_SRC_OPTIMAL with a memory barrier before copying the data out.
That works well once, but now I'd like to reuse the image in the next frame, i.e. after the image copy is complete, I'd have the external hardware fill new data into memory, and make sure that the next frame uses the new data.
Is an image barrier without a layout change the correct approach here, as I'm not allowed to take the layout back to PREINITIALIZED?