WorkgroupInfoNode

Last modified: Feb 1, 2026

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?)
ParameterTypeDefault Value
scopestring
bufferTypestring
bufferCount?number0

Constructs a new buffer scoped to type scope.

Properties

PropertyTypeDefault Value
bufferTypestring
bufferCountnumber
isWorkgroupInfoNodeboolean
elementTypestring
scopestring
MethodType

Extends

Node

workgroupArray

TSL function for creating a workgroup info node. Creates a new ‘workgroup’ scoped array buffer.

ParameterTypeDefault Value
typestring
count?number0

Returns

WorkgroupInfoNode