SPIR-V Built-In

InstanceCountHUAWEI

cluster culling shader output variable
InstanceCountHUAWEI

The InstanceCountHUAWEI decoration can be used to decorate a cluster culling shader output variable,this variable will contain an integer value that specifies the number of instance to draw in a cluster.

Valid Usage

VUID-InstanceCountHUAWEI-InstanceCountHUAWEI-07807

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

VUID-InstanceCountHUAWEI-InstanceCountHUAWEI-07808

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