A node allowing the user to create a ‘workgroup’ scoped buffer within the context of a compute shader. Typically, workgroup scoped buffers are created to hold data that is transferred from a global storage scope into a local workgroup scope. For invocations within a workgroup, data access speeds on ‘workgroup’ scoped buffers can be significantly faster than similar access operations on globally accessible storage buffers.
This node can only be used with a WebGPU backend.
Constructor
new WorkgroupInfoNode(scope, bufferType, bufferCount?)| Parameter | Type | Default Value |
|---|---|---|
| scope | string | — |
| bufferType | string | — |
| bufferCount? | number | 0 |
Constructs a new buffer scoped to type scope.
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| bufferType | string | — | |
| bufferCount | number | — | |
| isWorkgroupInfoNode | boolean | — | |
| elementType | string | — | |
| scope | string | — | |
| Method | Type | |
|---|---|---|
| setName | (name: string) => WorkgroupInfoNode | |
| label | (name: string) => WorkgroupInfoNode | |
| setScope | (scope: string) => WorkgroupInfoNode | |
| getElementType | () => string | |
| getInputType | () => string | |
| element | (indexNode: IndexNode) => WorkgroupInfoElementNode | |
| generate | (builder: any) => any | |
Extends
NodeTSL function for creating a workgroup info node. Creates a new ‘workgroup’ scoped array buffer.
| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
| count? | number | 0 |
Returns
WorkgroupInfoNode