SPIR-V Built-In
SubgroupEqMask
Mask of shader invocations in a subgroup with the same subgroup local invocation ID
SubgroupEqMask
Decorating a variable with the SubgroupEqMask
builtin decoration will
make that variable contain the subgroup mask of the current subgroup
invocation.
The bit corresponding to the SubgroupLocalInvocationId
is set in the
variable decorated with SubgroupEqMask
.
All other bits are set to zero.
SubgroupEqMaskKHR
is an alias of SubgroupEqMask
.
Valid Usage
VUID-SubgroupEqMask-SubgroupEqMask-04370
The variable decorated with SubgroupEqMask
must be declared using
the Input
Storage
Class
VUID-SubgroupEqMask-SubgroupEqMask-04371
The variable decorated with SubgroupEqMask
must be declared as a
four-component vector of 32-bit integer values