vkCreateTensorViewARM(3)
C Specification
To create a tensor view, call:
// Provided by VK_ARM_tensorsVkResult vkCreateTensorViewARM( VkDevice device, const VkTensorViewCreateInfoARM* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkTensorViewARM* pView);Parameters
deviceis the logical device that creates the tensor view.pCreateInfois a pointer to an instance of theVkTensorViewCreateInfoARMstructure containing parameters to beused to create the tensor view.pAllocatorcontrols host memory allocation as described in theMemory Allocation chapter.pViewis a pointer to aVkTensorViewARM handle in which theresulting tensor view object is returned.
Description
Some of the tensor creation parameters are inherited by the view.In particular, other than format, the tensor view creation inherits allother parameters from the tensor.
The remaining parameters are contained inpCreateInfo.
VUID-vkCreateTensorViewARM-device-parameter
devicemust be a validVkDevice handleVUID-vkCreateTensorViewARM-pCreateInfo-parameter
pCreateInfomust be a valid pointer to a validVkTensorViewCreateInfoARM structureVUID-vkCreateTensorViewARM-pAllocator-parameter
IfpAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacks structureVUID-vkCreateTensorViewARM-pView-parameter
pViewmust be a valid pointer to aVkTensorViewARM handleVUID-vkCreateTensorViewARM-device-queuecount
The devicemust have been created with at least1queue
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.