SPIR-V Built-In
ClusterIDNV
Contains the triangle cluster ID of a hit triangle in cluster acceleration structure
ClusterIDNV
A variable decorated with the ClusterIDNV decoration will contain the
triangle cluster ID of a hit triangle in a cluster acceleration structure if
the current ray hit a triangle primitive or -1 otherwise.
Valid Usage
VUID-ClusterIDNV-ClusterIDNV-10531
The ClusterIDNV decoration must be used only within the
AnyHitKHR, or ClosestHitKHR Execution Model
VUID-ClusterIDNV-ClusterIDNV-10532
The variable decorated with ClusterIDNV must be declared using the
Input Storage Class
VUID-ClusterIDNV-ClusterIDNV-10533
The variable decorated with ClusterIDNV must be declared as a
scalar 32-bit integer value