i have a vulkan program where i have a renderpass that has two subpasses the first…
- User
i have a vulkan program where i have a renderpass that has two subpasses
the first writes into a offscreen framebuffer the second reads this framebuffer as input attachment
in the dependencies of the second subpass, if i don't add MEMORY_WRITE to the dst_access_mask. i get validation errors. but why would MEMORY_WRITE be needed?
Assistant
The MEMORY_WRITE dependency is needed because the second subpass is reading the attachment that was written to by the first subpass. Even though it is reading (not writing), it still needs to ensure the write operations from the first subpass have completed before it can read a consistent value.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.