SPIR-V Built-In

SubgroupLeMask

Mask of shader invocations in a subgroup with the same or lower subgroup local invocation ID
SubgroupLeMask

Decorating a variable with the SubgroupLeMask builtin decoration will make that variable contain the subgroup mask of the current subgroup invocation. The bits corresponding to the invocations less than or equal to SubgroupLocalInvocationId are set in the variable decorated with SubgroupLeMask. All other bits are set to zero.

SubgroupLeMaskKHR is an alias of SubgroupLeMask.

Valid Usage

VUID-SubgroupLeMask-SubgroupLeMask-04376

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

VUID-SubgroupLeMask-SubgroupLeMask-04377

The variable decorated with SubgroupLeMask must be declared as a four-component vector of 32-bit integer values