AtomicFunctionNode represents any function that can operate on atomic variable types
within a shader. In an atomic function, any modification to an atomic variable will
occur as an indivisible step with a defined order relative to other modifications.
Accordingly, even if multiple atomic functions are modifying an atomic variable at once
atomic operations will not interfere with each other.
This node can only be used with a WebGPU backend.
Constructor
new AtomicFunctionNode(method, pointerNode, valueNode)| Parameter | Type | Default Value |
|---|---|---|
| method | string | — |
| pointerNode | Node | — |
| valueNode | Node | — |
Constructs a new atomic function node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| method | string | — | |
| pointerNode | Node | — | |
| valueNode | Node | — | |
| Method | Type | |
|---|---|---|
| getInputType | (builder: NodeBuilder) => string | |
| generateNodeType | (builder: NodeBuilder) => string | |
| generate | (builder: any) => any | |
Extends
NodeTSL function for appending an atomic function call into the programmatic flow of a compute shader.
| Parameter | Type | Default Value |
|---|---|---|
| method | string | — |
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeLoads the value stored in the atomic variable.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
Returns
AtomicFunctionNodeStores a value in the atomic variable.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeIncrements the value stored in the atomic variable.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeDecrements the value stored in the atomic variable.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeStores in an atomic variable the maximum between its current value and a parameter.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeStores in an atomic variable the minimum between its current value and a parameter.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeStores in an atomic variable the bitwise AND of its value with a parameter.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeStores in an atomic variable the bitwise OR of its value with a parameter.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNodeStores in an atomic variable the bitwise XOR of its value with a parameter.
| Parameter | Type | Default Value |
|---|---|---|
| pointerNode | Node | — |
| valueNode | Node | — |
Returns
AtomicFunctionNode