Function Prototype
vkCreateTensorViewARM
Create an tensor view from an existing tensor
To create a tensor view, call:
VkResult vkCreateTensorViewARM(
VkDevice device,
const VkTensorViewCreateInfoARM* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkTensorViewARM* pView);
pub fn create_tensor_view_arm(
device: vk::Device,
p_create_info: *const vk::TensorViewCreateInfoARM,
p_allocator: *const vk::AllocationCallbacks,
p_view: *mut vk::TensorViewARM,
) -> vk::Result;
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.
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.
Valid Usage (Implicit)
VUID-vkCreateTensorViewARM-device-parameter
device must be a valid VkDevice handle
VUID-vkCreateTensorViewARM-pCreateInfo-parameter
pCreateInfo must be a valid pointer to a valid VkTensorViewCreateInfoARM structure
VUID-vkCreateTensorViewARM-pAllocator-parameter
If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
VUID-vkCreateTensorViewARM-pView-parameter
pView must be a valid pointer to a VkTensorViewARM handle
VUID-vkCreateTensorViewARM-device-queuecount
The device must have been created with at least 1 queue
Parent
VK_ARM_tensorsType
Function Prototype