C Specification
The VkTensorViewCreateInfoARM
structure is defined as:
// Provided by VK_ARM_tensors
typedef struct VkTensorViewCreateInfoARM {
VkStructureType sType;
const void* pNext;
VkTensorViewCreateFlagsARM flags;
VkTensorARM tensor;
VkFormat format;
} VkTensorViewCreateInfoARM;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
flags
is reserved for future use. -
tensor
is a VkTensorARM on which the view will be created. -
format
is a VkFormat describing the format and type used to interpret elements in the tensor.
Description
If tensor
was created with the
VK_TENSOR_CREATE_MUTABLE_FORMAT_BIT_ARM
flag, format
can be
different from the tensor’s format, but if they are not equal they must be
compatible.
Tensor format compatibility is defined in the
Format Compatibility Classes section.
Views of compatible formats will have the same mapping between element
locations irrespective of the format
, with only the interpretation of
the bit pattern changing.
Note
|
Values intended to be used with one view format may not be exactly preserved when written or read through a different format. For example, an integer value that happens to have the bit pattern of a floating-point denorm or NaN may be flushed or canonicalized when written or read through a view with a floating-point format. Similarly, a value written through a signed normalized format that has a bit pattern exactly equal to -2b may be changed to -2b + 1 as described in Conversion from Normalized Fixed-Point to Floating-Point. |
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.