Enum

VkTensorUsageFlagBitsARM

Bitmask specifying allowed usage of a tensor

Bits which can be set in VkTensorDescriptionARM::usage, specifying usage behavior of a tensor, are:

typedef enum VkTensorUsageFlagBitsARM {
    VK_TENSOR_USAGE_SHADER_BIT_ARM = 0x00000002ULL,
    VK_TENSOR_USAGE_TRANSFER_SRC_BIT_ARM = 0x00000004ULL,
    VK_TENSOR_USAGE_TRANSFER_DST_BIT_ARM = 0x00000008ULL,
    VK_TENSOR_USAGE_IMAGE_ALIASING_BIT_ARM = 0x00000010ULL,
} VkTensorUsageFlagBitsARM;
  • VK_TENSOR_USAGE_SHADER_BIT_ARM specifies that the tensor can be used to create a VkTensorViewARM suitable for occupying a VkDescriptorSet slot of type VK_DESCRIPTOR_TYPE_TENSOR_ARM accessed by shader stages.
  • VK_TENSOR_USAGE_TRANSFER_SRC_BIT_ARM specifies that the tensor can be used as the source of a transfer command (see the definition of VK_PIPELINE_STAGE_TRANSFER_BIT).
  • VK_TENSOR_USAGE_TRANSFER_DST_BIT_ARM specifies that the tensor can be used as the destination of a transfer command.
  • VK_TENSOR_USAGE_IMAGE_ALIASING_BIT_ARM specifies that the tensor can be bound to a range of memory aliased with an image created with VK_IMAGE_TILING_OPTIMAL. See Memory Aliasing for a complete set of rules for tensor/image aliasing.
  • VK_TENSOR_USAGE_DATA_GRAPH_BIT_ARM specifies that the tensor can be used to create a VkTensorViewARM suitable for occupying a VkDescriptorSet slot of type VK_DESCRIPTOR_TYPE_TENSOR_ARM accessed by data graph pipelines.