BarrierNode

Last modified: Mar 20, 2026

Represents a GPU control barrier that synchronizes compute operations within a given scope.

This node can only be used with a WebGPU backend.

Constructor

new BarrierNode(scope)
ParameterTypeDefault Value
scopestring

Constructs a new barrier node.

Properties

PropertyTypeDefault Value
scopestring
isBarrierNodeboolean
MethodType

Extends

Node

workgroupBarrier

TSL function for creating a workgroup barrier. All compute shader invocations must wait for each invocation within a workgroup to complete before the barrier can be surpassed.

Returns

BarrierNode

storageBarrier

TSL function for creating a storage barrier. All invocations must wait for each access to variables within the ‘storage’ address space to complete before the barrier can be passed.

Returns

BarrierNode

textureBarrier

TSL function for creating a texture barrier. All invocations must wait for each access to variables within the ‘texture’ address space to complete before the barrier can be passed.

Returns

BarrierNode