C Specification
To query the size of a cooperative vector matrix, or to convert a matrix to another layout and type, call:
// Provided by VK_NV_cooperative_vector
VkResult vkConvertCooperativeVectorMatrixNV(
VkDevice device,
const VkConvertCooperativeVectorMatrixInfoNV* pInfo);
Parameters
-
deviceis the device. -
pInfois a pointer to a VkConvertCooperativeVectorMatrixInfoNV structure containing information about the layout conversion.
Description
If pInfo->dstData is NULL, then the number of bytes required to
store the converted matrix is returned in pDstSize.
Otherwise, pInfo->pDstSize must point to a variable set by the user
to the number of bytes in pInfo->dstData, and on return the variable
is overwritten with the number of bytes actually written to
pInfo->dstData.
pInfo->srcData can be NULL when pInfo->dstData is NULL.
If pInfo->pDstSize is less than the number of bytes required to store
the converted matrix, no bytes will be written, and VK_INCOMPLETE will
be returned instead of VK_SUCCESS, to indicate that not enough space
was provided.
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.