I write to an image in a compute shader and then copy it to a swapchain image with cmd_copy_image. However when I do that I get:
Even though I transitioned layout of the image to VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL with cmd_pipeline_barrier in a command buffer that was submitted before the command buffer where I copy the image.
What can be the problem ?
https://github.com/Smif-N-Wessun/Voxel-Editor/blob/main/src/vulkan.rs#L213