Using the same texture buffer as SRV and UAV simultaneously on the same compute shader

Started by
10 comments, last by meirivry 11 years, 11 months ago
Is it enough to unbind the SRVs and UAVs after each iteration or do I need to dispose them and create new ones each time?[/quote]
Yes, you can unbind them and reuse them (I used to just swap them after each iteration if I need to chain multiple iterations in a feedback fashion). Just make sure you unbind them in the right order (or just to be sure, unbind them both first, them bind them back).

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

Advertisement
Thanks a lot.

This topic is closed to new replies.

Advertisement