Description

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

See Also

No cross-references are available

Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0