C Specification
To create a tensor view, call:
// Provided by VK_ARM_tensors
VkResult 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 be used to create the tensor view. -
pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter. -
pViewis a pointer to a VkTensorViewARM handle in which the resulting 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 all other parameters from the tensor.
The remaining parameters are contained in pCreateInfo.
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.