VkCopyTensorInfoARM(3)
C Specification
TheVkCopyTensorInfoARM structure is defined as:
// Provided by VK_ARM_tensorstypedef struct VkCopyTensorInfoARM { VkStructureType sType; const void* pNext; VkTensorARM srcTensor; VkTensorARM dstTensor; uint32_t regionCount; const VkTensorCopyARM* pRegions;} VkCopyTensorInfoARM;Members
sTypeis aVkStructureType value identifying this structure.pNextis NULL or a pointer to a structure extending thisstructure.srcTensoris the source tensor.dstTensoris the destination tensor.regionCountis the number of regions to copy.pRegionsis a pointer to an array ofVkTensorCopyARMstructures specifying the regions to copy.
Description
Each region inpRegions describes a region to be copied from thesource tensor to a corresponding region of the destination tensor.srcTensor anddstTensorcan be the same tensor or alias thesame memory.
The formats ofsrcTensor anddstTensormust be compatible.Formats are compatible if they share the same class, as shown in theCompatible Formats table.
vkCmdCopyTensorARM allows copying betweensize-compatible internalformats.
VUID-VkCopyTensorInfoARM-dimensionCount-09684
srcTensoranddstTensormust have been created with equalvalues forVkTensorDescriptionARM::dimensionCountVUID-VkCopyTensorInfoARM-pDimensions-09685
For each of the elements ofVkTensorDescriptionARM::pDimensions,srcTensoranddstTensormust be the same sizeVUID-VkCopyTensorInfoARM-regionCount-09686
regionCountmust be equal to 1VUID-VkCopyTensorInfoARM-pRegions-09687
Each element ofpRegionsmust be aVkTensorCopyARMstructure whosepSrcOffsetisNULLor has all its elements equalto0VUID-VkCopyTensorInfoARM-pRegions-09688
Each element ofpRegionsmust be aVkTensorCopyARMstructure whosepDstOffsetisNULLor has all its elements equalto0VUID-VkCopyTensorInfoARM-pRegions-09689
Each element ofpRegionsmust be aVkTensorCopyARMstructure whosepExtentisNULLor equal to theVkTensorDescriptionARM::pDimensionsarray specified whensrcTensoranddstTensorwere createdVUID-VkCopyTensorInfoARM-pRegions-09954
Each element ofpRegionsmust be aVkTensorCopyARMstructure whosedimensionCount, if it is not equal to 0, is equalto the largest of theVkTensorDescriptionARM::dimensionCountofsrcTensorordstTensorVUID-VkCopyTensorInfoARM-srcTensor-09690
Theformat features ofsrcTensormust containVK_FORMAT_FEATURE_2_TRANSFER_SRC_BITVUID-VkCopyTensorInfoARM-srcTensor-09691
srcTensormust have been created with theVK_TENSOR_USAGE_TRANSFER_SRC_BIT_ARM usage flag setVUID-VkCopyTensorInfoARM-dstTensor-09692
Theformat features ofdstTensormust containVK_FORMAT_FEATURE_2_TRANSFER_DST_BITVUID-VkCopyTensorInfoARM-dstTensor-09693
dstTensormust have been created with theVK_TENSOR_USAGE_TRANSFER_DST_BIT_ARM usage flag setVUID-VkCopyTensorInfoARM-srcTensor-09694
IfsrcTensoris non-sparse then itmust be bound completely andcontiguously to a singleVkDeviceMemory objectVUID-VkCopyTensorInfoARM-dstTensor-09695
IfdstTensoris non-sparse then itmust be bound completely andcontiguously to a singleVkDeviceMemory object
VUID-VkCopyTensorInfoARM-sType-sType
sTypemust beVK_STRUCTURE_TYPE_COPY_TENSOR_INFO_ARMVUID-VkCopyTensorInfoARM-srcTensor-parameter
srcTensormust be a validVkTensorARM handleVUID-VkCopyTensorInfoARM-dstTensor-parameter
dstTensormust be a validVkTensorARM handleVUID-VkCopyTensorInfoARM-pRegions-parameter
pRegionsmust be a valid pointer to an array ofregionCountvalidVkTensorCopyARM structuresVUID-VkCopyTensorInfoARM-regionCount-arraylength
regionCountmust be greater than0VUID-VkCopyTensorInfoARM-commonparent
Both ofdstTensor, andsrcTensormust have been created, allocated, or retrieved from the sameVkDevice
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.