SPIR-V Built-In
SMCountNV
Number of SMs on the device
SMCountNV
Decorating a variable with the SMCountNV
built-in decoration will make
that variable contain the number of SMs on the device.
Valid Usage
VUID-SMCountNV-SMCountNV-04363
The variable decorated with SMCountNV
must be declared using the
Input
Storage
Class
VUID-SMCountNV-SMCountNV-04364
The variable decorated with SMCountNV
must be declared as a scalar
32-bit integer value