SPIR-V Built-In

ClusterIDHUAWEI

cluster culling shader output variable
ClusterIDHUAWEI

The ClusterIDHUAWEI decoration can be used to decorate a cluster culling shader output variable,this variable will contain an integer value that specifies the id of cluster being rendered by this drawing command. When Cluster Culling Shader enable, ClusterIDHUAWEI will replace gl_DrawID pass to vertex shader for cluster-related information fetching.

Valid Usage

VUID-ClusterIDHUAWEI-ClusterIDHUAWEI-07797

The ClusterIDHUAWEI decoration must be used only within the ClusterCullingHUAWEI Execution Model

VUID-ClusterIDHUAWEI-ClusterIDHUAWEI-07798

The variable decorated with ClusterIDHUAWEI must be declared as a scalar 32-bit integer value