Open
Description
Description
Now that drawIndirect
is supported in WebGPURenderer, I think it is also helpful to add support for dipatching compute shaders indirectly.
Right now I have two compute shaders A and B. A's compute count is determined by B's output. So having the dispatchWorkgroupsIndirect
feature would greatly help boost my application's performance.
Solution
Add a computeIndirect(indirect: IndirectStorageBufferAttribute)
method to TSL Node
class. And each ComputeNode
can hold an indirect attribute, which can be used to dispatch workgroups indirectly.
Alternatives
N/A
Additional context
No response