File: WorkgroupInfoNode.md | Updated: 11/15/2025
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.
Constructs a new buffer scoped to type scope.
scope | TODO.
---|---
bufferType | The data type of a 'workgroup' scoped buffer element.
bufferCount | The number of elements in the buffer. Default is 0.
The buffer count.
Default is 0.
The buffer type.
The data type of the array buffer.
This flag can be used for type testing.
Default is true.
The name of the workgroup scoped buffer.
Default is ''.
Overrides: Node#name
TODO.
This method can be used to access elements via an index node.
indexNode | indexNode.
---|---
Returns: A reference to an element.
The data type of the array buffer.
Overrides: Node#getElementType
Returns: The element type.
Overwrites the default implementation since the input type is inferred from the scope.
builder | The current node builder.
---|---
Returns: The input type.
Sets the name/label of this node.
name | The name to set.
---|---
Deprecated: Yes
Returns: A reference to this node.
Sets the name of this node.
name | The name to set.
---|---
Returns: A reference to this node.
Sets the scope of this node.
scope | The scope to set.
---|---
Returns: A reference to this node.