Function Prototype
vkCreateTensorARM
Create a new tensor object
To create tensors, call:
VkResult vkCreateTensorARM(
VkDevice device,
const VkTensorCreateInfoARM* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkTensorARM* pTensor);
pub fn create_tensor_arm(
device: vk::Device,
p_create_info: *const vk::TensorCreateInfoARM,
p_allocator: *const vk::AllocationCallbacks,
p_tensor: *mut vk::TensorARM,
) -> vk::Result;
deviceis the logical device that creates the tensor.pCreateInfois a pointer to a VkTensorCreateInfoARM structure containing parameters to be used to create the tensor.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pTensoris a pointer to a VkTensorARM handle in which the resulting tensor object is returned.
Valid Usage
VUID-vkCreateTensorARM-tensors-09832
The tensors feature must be enabled
Valid Usage (Implicit)
VUID-vkCreateTensorARM-device-parameter
device must be a valid VkDevice handle
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
Parent
VK_ARM_tensorsType
Function Prototype