File: ComputeBuiltinNode.md | Updated: 11/15/2025
ComputeBuiltinNode represents a compute-scope builtin value that expose information about the currently running dispatch and/or the device it is running on.
This node can only be used with a WebGPU backend.
Constructs a new compute builtin node.
builtinName | The built-in name.
---|---
nodeType | The node type.
Returns the builtin name.
builder | The current node builder.
---|---
Returns: The builtin name.
This method is overwritten since hash is derived from the built-in name.
builder | The current node builder.
---|---
Overrides: Node#getHash
Returns: The hash.
This method is overwritten since the node type is simply derived from nodeType..
builder | The current node builder.
---|---
Overrides: Node#getNodeType
Returns: The node type.
Whether the current node builder has the builtin or not.
builder | The current node builder.
---|---
Returns: Whether the builder has the builtin or not.
Sets the builtin name.
builtinName | The built-in name.
---|---
Returns: A reference to this node.