// Copyright 2026 The Khronos Group Inc. // // SPDX-License-Identifier: CC-BY-4.0 include::{generated}/meta/{refprefix}VK_EXT_cooperative_vector.adoc[] === Other Extension Metadata *Last Modified Date*:: 2026-11-30 *Interactions and External Dependencies*:: - This extension requires {spirv}/EXT/SPV_EXT_cooperative_vector.html[`SPV_EXT_cooperative_vector`] - This extension provides API support for {GLSLregistry}/ext/GLSL_EXT_cooperative_vector.txt[`GL_EXT_cooperative_vector`] *Contributors*:: - Jeff Bolz, NVIDIA - Matthew Netsch, Qualcomm - Vikram Tarikere, Imagination Technologies - Alan Baker, Google - Russell Liu, AMD - Alexander Galazin, Qualcomm - Tobias Hector, AMD === Description This extension adds support for per-invocation matrix-vector multiplication and outer-product accumulation using ordinary SPIR-V vector types. These operations are intended to accelerate the evaluation and training of small neural networks. Unlike cooperative matrix operations, cooperative vector operations do not require a fully occupied subgroup or uniform control flow. Invocations may: cooperate behind the scenes when performing matrix-vector multiplies, but the vectors and abstract matrix values are logically owned by individual invocations. The matrix-vector and outer-product operations are each split into a pair of instructions. A matrix load produces an abstract matrix value that can: be consumed by a matrix-vector multiply, and an outer product produces an abstract matrix accumulator that can: be accumulated to memory. This extension includes support for enumerating the combinations of types that are supported by the implementation, and for converting matrix data to and from an optimized opaque layout. It also optionally provides robust buffer access for cooperative vector matrix accesses. This extension promotes the compatible API functionality of `apiext:VK_NV_cooperative_vector`. include::{generated}/interfaces/VK_EXT_cooperative_vector.adoc[] === New SPIR-V Capabilities * <> * <> === Issues 1.) Do the EXT feature bits enable the NV SPIR-V capabilities? *RESOLVED*: No. The feature bits in slink:VkPhysicalDeviceCooperativeVectorFeaturesEXT enable only the EXT capabilities. The NV feature structure continues to enable only the NV capabilities. API types and commands with identical definitions are aliases, but the feature structures and SPIR-V capabilities are distinct. 2.) What does pname:biasInterpretation identify for the EXT instructions? *RESOLVED*: It identifies the component type of the bias vector. The vector type carries this information, so the EXT multiply-add instruction does not need a separate bias-interpretation operand. For the NV instructions, it continues to identify the value of the code:BiasInterpretation operand. 3.) How are cooperative vector accesses bounds checked? *RESOLVED*: Matrix loads may: read aligned four-byte memory blocks, and cooperative vector matrix accesses may: use descriptor ranges rounded up to a multiple of four bytes, whether or not bounds checking is enabled. If pname:cooperativeVectorRobustBufferAccess and an applicable robust buffer access mode are enabled, the implementation may: perform per-component bounds checking at a four-byte granularity or bounds check a whole matrix range. If the feature is not enabled, these instructions are not bounds checked by Vulkan. 4.) How do element-index and stride semantics differ from apiext:VK_NV_cooperative_vector? *RESOLVED*: The EXT shading language functions interpret `matrixElement` as an array index, and matrix strides in elements of the associated array element type. The EXT SPIR-V instructions have no offset operands; their pointer operands point directly to the first accessed element. EXT SPIR-V matrix strides are measured in pointee elements for typed pointers and in bytes for untyped pointers. The NV SPIR-V instructions instead have explicit byte-offset operands and always measure matrix strides in bytes. === Version History * Revision 1, 2026-11-30 (Jeff Bolz) ** Initial revision