Skip to content

Layout discrepancy in dynamic_rendering_local_read #1462

@mbty-hi

Description

@mbty-hi

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions