MDLVertexFormat
Descriptions of the data size and layout for a vertex attribute, used by the Format property.
Declaration
enum MDLVertexFormatOverview
The values for vertex formats are constructed such that you can use bit masks to infer useful information about a format:
The lowest order byte contains the number of vector components in a vertex format. For example, the raw value for the MDLVertexFormat.char3 format is the bitwise OR of the 3 (the number of components) with the MDLVertexFormat.charBits value.
Special packed formats such as MDLVertexFormat.int1010102Normalized have values less than
0x10000.For unpacked formats, masking away the lower four bytes leaves information about the data type for scalars or vector components.
Topics
Constants
MDLVertexFormat.invalidMDLVertexFormat.packedBitMDLVertexFormat.uCharBitsMDLVertexFormat.charBitsMDLVertexFormat.uCharNormalizedBitsMDLVertexFormat.charNormalizedBitsMDLVertexFormat.uShortBitsMDLVertexFormat.shortBitsMDLVertexFormat.uShortNormalizedBitsMDLVertexFormat.shortNormalizedBitsMDLVertexFormat.uIntBitsMDLVertexFormat.intBitsMDLVertexFormat.halfBitsMDLVertexFormat.floatBitsMDLVertexFormat.uCharMDLVertexFormat.uChar2MDLVertexFormat.uChar3MDLVertexFormat.uChar4MDLVertexFormat.charMDLVertexFormat.char2MDLVertexFormat.char3MDLVertexFormat.char4MDLVertexFormat.uCharNormalizedMDLVertexFormat.uChar2NormalizedMDLVertexFormat.uChar3NormalizedMDLVertexFormat.uChar4NormalizedMDLVertexFormat.charNormalizedMDLVertexFormat.char2NormalizedMDLVertexFormat.char3NormalizedMDLVertexFormat.char4NormalizedMDLVertexFormat.uShortMDLVertexFormat.uShort2MDLVertexFormat.uShort3MDLVertexFormat.uShort4MDLVertexFormat.shortMDLVertexFormat.short2MDLVertexFormat.short3MDLVertexFormat.short4MDLVertexFormat.uShortNormalizedMDLVertexFormat.uShort2NormalizedMDLVertexFormat.uShort3NormalizedMDLVertexFormat.uShort4NormalizedMDLVertexFormat.shortNormalizedMDLVertexFormat.short2NormalizedMDLVertexFormat.short3NormalizedMDLVertexFormat.short4NormalizedMDLVertexFormat.uIntMDLVertexFormat.uInt2MDLVertexFormat.uInt3MDLVertexFormat.uInt4MDLVertexFormat.intMDLVertexFormat.int2MDLVertexFormat.int3MDLVertexFormat.int4MDLVertexFormat.halfMDLVertexFormat.half2MDLVertexFormat.half3MDLVertexFormat.half4MDLVertexFormat.floatMDLVertexFormat.float2MDLVertexFormat.float3MDLVertexFormat.float4MDLVertexFormat.int1010102NormalizedMDLVertexFormat.uInt1010102Normalized