in vulkan i use a image as color attachment in subpass 0. in subpass 1 i use this image…
- User
in vulkan i use a image as color attachment in subpass 0. in subpass 1 i use this image as input attachment. after the renderpass ended i don't care about the layout of that image. So apparently i have a write write hazard. how would you make the dependencies in order for this to work
Assistant
You can use a subpass dependency to ensure that the write to the color attachment in subpass 0 has completed before the read from the same attachment in subpass 1.
Here are the steps to set up the dependency:
- Create a subpass dependency object:
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.