C Specification

The VkPhysicalDeviceCooperativeMatrixInfo2EXT structure is defined as:

// Provided by VK_EXT_cooperative_matrix_maintenance1
typedef struct VkPhysicalDeviceCooperativeMatrixInfo2EXT {
    VkStructureType                sType;
    const void*                    pNext;
    VkScopeKHR                     scope;
    uint32_t                       invocations;
    uint32_t                       subgroupSize;
    VkCooperativeMatrixFlagsEXT    flags;
} VkPhysicalDeviceCooperativeMatrixInfo2EXT;

Members

  • sType is a VkStructureType value identifying this structure.

  • pNext is NULL or a pointer to a structure extending this structure.

  • scope is the scope of the matrices, of type VkScopeKHR.

  • invocations is the number of invocations within the local workgroup. invocations is ignored unless scope is VK_SCOPE_WORKGROUP_KHR.

  • subgroupSize is the size of the subgroup.

  • flags is a bitmask of VkCooperativeMatrixFlagBitsEXT selecting which class of matrix properties are being queried.

Description

If subgroupSize is equal to 0, then the properties returned will be valid for use with shaders that execute with a varying subgroup size, and the returned properties are not guaranteed to be valid for any specific effective subgroup size.

If scope is VK_SCOPE_WORKGROUP_KHR, invocations specifies the number of invocations in the local workgroup, otherwise the properties returned will be valid for all supported local workgroup sizes.

Note

If scope is VK_SCOPE_WORKGROUP_KHR scope, the retrieved properties will only be valid for shaders in which invocations is a multiple of the shader’s effective subgroup size.

Note

The intended usage of subgroupSize is:

Valid Usage
Valid Usage (Implicit)

See Also

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-2026 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0