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 reason the
MEMORY_WRITEaccess mask is needed in the dependencies of the second subpass is because the command that writes data to the offscreen framebuffer that the second subpass reads from is a write operation. The write operation modifies the contents of the framebuffer, so it needs to be considered as a "write" operation in theMEMORY_WRITEaccess mask.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.