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)| Parameter | Type | Default Value |
|---|---|---|
| scope | string | — |
Constructs a new barrier node.
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| scope | string | — | |
| isBarrierNode | boolean | — | |
| Method | Type | |
|---|---|---|
| generate | (builder: any) => void | |
Extends
NodeTSL 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
BarrierNodeTSL 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
BarrierNodeTSL 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