# vkCreateTensorViewARM(3) Manual Page

## Name

vkCreateTensorViewARM - Create an tensor view from an existing tensor

Loading… please wait.

## 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

- `device` is the logical device that creates the tensor view.

- `pCreateInfo` is a pointer to an instance of the `VkTensorViewCreateInfoARM` structure containing parameters to be used to create the tensor view.

- `pAllocator` controls host memory allocation as described in the Memory Allocation chapter.

- `pView` is 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`.

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

Return Codes

On success, this command returns

  - `VK_SUCCESS`

On failure, this command returns

  - `VK_ERROR_OUT_OF_HOST_MEMORY`

  - `VK_ERROR_OUT_OF_DEVICE_MEMORY`

## See Also

VK_ARM_tensors, VkAllocationCallbacks, VkDevice, VkTensorViewARM, VkTensorViewCreateInfoARM

## 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.

## Copyright

Copyright 2014-2025 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0