What is the necessary lifetime of a bind group in WebGPU? I have not been able to find clear documentation on this. I'm using the C/C++ bindings for wgpu.
Is it allowed to release a bind group immediately after submitting the command buffer to the queue, or does it have to persist longer?
I am doing some compute shader work and I need to dispatch work onto subranges of buffers. These ranges are generally not known until runtime, so it seems I need to create a one-off bind group selecting the range, after which it is not needed anymore. After submitting, when does it become safe to release them?
As a bonus, is there a better way to select dynamic subranges of buffers?