SPIR-V Built-In

CoreCountARM

Number of cores on the device
CoreCountARM

Decorating a variable with the CoreCountARM built-in decoration will make that variable contain the number of cores on the device.

Valid Usage

VUID-CoreCountARM-CoreCountARM-07595

The variable decorated with CoreCountARM must be declared using the Input Storage Class

VUID-CoreCountARM-CoreCountARM-07596

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