Skip to content

Add support for dispatchWorkgroupsIndirect #30982

Open
@HongchengZhao

Description

@HongchengZhao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions