Enumeration

MTLVertexFormat

Values that specify the organization of function vertex data.

Declaration

typedef enum MTLVertexFormat : NSUInteger {
    ...
} MTLVertexFormat;

Topics

Constants

MTLVertexFormatInvalid

An invalid vertex format.

MTLVertexFormatUChar

One unsigned 8-bit value.

MTLVertexFormatUChar2

Two unsigned 8-bit values.

MTLVertexFormatUChar3

Three unsigned 8-bit values.

MTLVertexFormatUChar4

Four unsigned 8-bit values.

MTLVertexFormatChar

One signed 8-bit two's complement value.

MTLVertexFormatChar2

Two signed 8-bit two's complement values.

MTLVertexFormatChar3

Three signed 8-bit two's complement values.

MTLVertexFormatChar4

Four signed 8-bit two's complement values.

MTLVertexFormatUCharNormalized

One unsigned normalized 8-bit value.

MTLVertexFormatUChar2Normalized

Two unsigned normalized 8-bit values.

MTLVertexFormatUChar3Normalized

Three unsigned normalized 8-bit values.

MTLVertexFormatUChar4Normalized

Four unsigned normalized 8-bit values.

MTLVertexFormatCharNormalized

One signed normalized 8-bit two's complement value.

MTLVertexFormatChar2Normalized

Two signed normalized 8-bit two's complement values.

MTLVertexFormatChar3Normalized

Three signed normalized 8-bit two's complement values.

MTLVertexFormatChar4Normalized

Four signed normalized 8-bit two's complement values.

MTLVertexFormatUShort

One unsigned 16-bit value.

MTLVertexFormatUShort2

Two unsigned 16-bit values.

MTLVertexFormatUShort3

Three unsigned 16-bit values.

MTLVertexFormatUShort4

Four unsigned 16-bit values.

MTLVertexFormatShort

One signed 16-bit two's complement value.

MTLVertexFormatShort2

Two signed 16-bit two's complement values.

MTLVertexFormatShort3

Three signed 16-bit two's complement values.

MTLVertexFormatShort4

Four signed 16-bit two's complement values.

MTLVertexFormatUShortNormalized

One unsigned normalized 16-bit value.

MTLVertexFormatUShort2Normalized

Two unsigned normalized 16-bit values.

MTLVertexFormatUShort3Normalized

Three unsigned normalized 16-bit values.

MTLVertexFormatUShort4Normalized

Four unsigned normalized 16-bit values.

MTLVertexFormatShortNormalized

One signed normalized 16-bit two's complement value.

MTLVertexFormatShort2Normalized

Two signed normalized 16-bit two's complement values.

MTLVertexFormatShort3Normalized

Three signed normalized 16-bit two's complement values.

MTLVertexFormatShort4Normalized

Four signed normalized 16-bit two's complement values.

MTLVertexFormatHalf

One half-precision floating-point value.

MTLVertexFormatHalf2

Two half-precision floating-point values.

MTLVertexFormatHalf3

Three half-precision floating-point values.

MTLVertexFormatHalf4

Four half-precision floating-point values.

MTLVertexFormatFloat

One single-precision floating-point value.

MTLVertexFormatFloat2

Two single-precision floating-point values.

MTLVertexFormatFloat3

Three single-precision floating-point values.

MTLVertexFormatFloat4

Four single-precision floating-point values.

MTLVertexFormatUInt

One unsigned 32-bit value.

MTLVertexFormatUInt2

Two unsigned 32-bit values.

MTLVertexFormatUInt3

Three unsigned 32-bit values.

MTLVertexFormatUInt4

Four unsigned 32-bit values.

MTLVertexFormatInt

One signed 32-bit two's complement value.

MTLVertexFormatInt2

Two signed 32-bit two's complement values.

MTLVertexFormatInt3

Three signed 32-bit two's complement values.

MTLVertexFormatInt4

Four signed 32-bit two's complement values.

MTLVertexFormatInt1010102Normalized

One packed 32-bit value with four normalized signed two's complement integer values, arranged as 10 bits, 10 bits, 10 bits, and 2 bits.

MTLVertexFormatUInt1010102Normalized

One packed 32-bit value with four normalized unsigned integer values, arranged as 10 bits, 10 bits, 10 bits, and 2 bits.

MTLVertexFormatUChar4Normalized_BGRA

Four unsigned normalized 8-bit values, arranged as blue, green, red, and alpha components.