File: IndexNode.md | Updated: 11/15/2025
This class represents shader indices of different types. The following predefined node objects cover frequent use cases:
vertexIndex: The index of a vertex within a mesh.instanceIndex: The index of either a mesh instance or an invocation of a compute shader.drawIndex: The index of a draw call.invocationLocalIndex: The index of a compute invocation within the scope of a workgroup load.invocationSubgroupIndex: The index of a compute invocation within the scope of a subgroup.subgroupIndex: The index of a compute invocation's subgroup within its workgroup.Constructs a new index node.
scope | The scope of the index node.
---|---
This flag can be used for type testing.
Default is true.
The scope of the index node.