There is a discrepancy between the layout swapchain_buffers[i].image gets transitioned to before the render/gets transitioned from after it, and what is declared as part of the related VkRenderingAttachmentInfoKHR in the dynamic_rendering_local_read sample (VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL vs. VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHR). Despite that, the sample runs without warnings on machine, though it must be said that it still runs fine if I replace the VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL with about any other layout, or even if I wholly remove the two explicit transitions for this resource. Similarly, I can replace VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHR with other layouts without Vulkan complaining. However, switching the nearby VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL for a VK_LAYOUT_UNDEFINED results in a black screen (understandably). I wonder if this could be a matter of layouts actually being the same behind the scenes (resulting in ignored transitions/accidental compatibility) + incomplete layers, though I may well be misunderstanding something more fundamental.
There is a discrepancy between the layout
swapchain_buffers[i].imagegets transitioned to before the render/gets transitioned from after it, and what is declared as part of the relatedVkRenderingAttachmentInfoKHRin the dynamic_rendering_local_read sample (VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMALvs.VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHR). Despite that, the sample runs without warnings on machine, though it must be said that it still runs fine if I replace theVK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMALwith about any other layout, or even if I wholly remove the two explicit transitions for this resource. Similarly, I can replaceVK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHRwith other layouts without Vulkan complaining. However, switching the nearbyVK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMALfor aVK_LAYOUT_UNDEFINEDresults in a black screen (understandably). I wonder if this could be a matter of layouts actually being the same behind the scenes (resulting in ignored transitions/accidental compatibility) + incomplete layers, though I may well be misunderstanding something more fundamental.