Function Prototype

vkCreateTensorARM

Create a new tensor object

To create tensors, call:

VkResult vkCreateTensorARM(
    VkDevice device,
    const VkTensorCreateInfoARM* pCreateInfo,
    const VkAllocationCallbacks* pAllocator,
    VkTensorARM* pTensor);
  • device is the logical device that creates the tensor.
  • pCreateInfo is a pointer to a VkTensorCreateInfoARM structure containing parameters to be used to create the tensor.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.
  • pTensor is a pointer to a VkTensorARM handle in which the resulting tensor object is returned.

Valid Usage

Valid Usage (Implicit)

VUID-vkCreateTensorARM-pCreateInfo-parameter

pCreateInfo must be a valid pointer to a valid VkTensorCreateInfoARM structure

VUID-vkCreateTensorARM-pAllocator-parameter

If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure

VUID-vkCreateTensorARM-pTensor-parameter

pTensor must be a valid pointer to a VkTensorARM handle

VUID-vkCreateTensorARM-device-queuecount

The device must have been created with at least 1 queue