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 will need to use a render pass dependency to make sure that the image is cleared before it is used as an input attachment. The dependency must be from the completion of subpass 0 to the start of subpass 1.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.