Enumeration

MTLAttributeFormat

Values that specify the organization of function attribute data.

Declaration

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

Topics

Attribute data types

MTLAttributeFormatInvalid

An invalid format.

MTLAttributeFormatUChar

One unsigned 8-bit value.

MTLAttributeFormatUChar2

Two unsigned 8-bit values.

MTLAttributeFormatUChar3

Three unsigned 8-bit values.

MTLAttributeFormatUChar4

Four unsigned 8-bit values.

MTLAttributeFormatChar

One signed 8-bit two's complement value.

MTLAttributeFormatChar2

Two signed 8-bit two's complement values.

MTLAttributeFormatChar3

Three signed 8-bit two's complement values.

MTLAttributeFormatChar4

Four signed 8-bit two's complement values.

MTLAttributeFormatUCharNormalized

One unsigned normalized 8-bit value.

MTLAttributeFormatUChar2Normalized

Two unsigned normalized 8-bit values.

MTLAttributeFormatUChar3Normalized

Three unsigned normalized 8-bit values.

MTLAttributeFormatUChar4Normalized

Four unsigned normalized 8-bit values.

MTLAttributeFormatCharNormalized

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

MTLAttributeFormatChar2Normalized

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

MTLAttributeFormatChar3Normalized

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

MTLAttributeFormatChar4Normalized

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

MTLAttributeFormatUShort

One unsigned 16-bit value.

MTLAttributeFormatUShort2

Two unsigned 16-bit values.

MTLAttributeFormatUShort3

Three unsigned 16-bit values.

MTLAttributeFormatUShort4

Four unsigned 16-bit values.

MTLAttributeFormatShort

One signed 16-bit two's complement value.

MTLAttributeFormatShort2

Two signed 16-bit two's complement values.

MTLAttributeFormatShort3

Three signed 16-bit two's complement values.

MTLAttributeFormatShort4

Four signed 16-bit two's complement values.

MTLAttributeFormatUShortNormalized

One unsigned normalized 16-bit value.

MTLAttributeFormatUShort2Normalized

Two unsigned normalized 16-bit values

MTLAttributeFormatUShort3Normalized

Three unsigned normalized 16-bit values.

MTLAttributeFormatUShort4Normalized

Four unsigned normalized 16-bit values.

MTLAttributeFormatShortNormalized

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

MTLAttributeFormatShort2Normalized

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

MTLAttributeFormatShort3Normalized

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

MTLAttributeFormatShort4Normalized

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

MTLAttributeFormatHalf

One half-precision floating-point value.

MTLAttributeFormatHalf2

Two half-precision floating-point values.

MTLAttributeFormatHalf3

Three half-precision floating-point values.

MTLAttributeFormatHalf4

Four half-precision floating-point values.

MTLAttributeFormatFloat

One single-precision floating-point value.

MTLAttributeFormatFloat2

Two single-precision floating-point values.

MTLAttributeFormatFloat3

Three single-precision floating-point values.

MTLAttributeFormatFloat4

Four single-precision floating-point values.

MTLAttributeFormatUInt

One unsigned 32-bit value.

MTLAttributeFormatUInt2

Two unsigned 32-bit values.

MTLAttributeFormatUInt3

Three unsigned 32-bit values.

MTLAttributeFormatUInt4

Four unsigned 32-bit values.

MTLAttributeFormatInt

One signed 32-bit two's complement value.

MTLAttributeFormatInt2

Two signed 32-bit two's complement values.

MTLAttributeFormatInt3

Three signed 32-bit two's complement values.

MTLAttributeFormatInt4

Four signed 32-bit two's complement values.

MTLAttributeFormatInt1010102Normalized

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.

MTLAttributeFormatUInt1010102Normalized

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

MTLAttributeFormatUChar4Normalized_BGRA

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

See Also

Defining Attribute Location

bufferIndex

The index in the argument table for the buffer that contains the data for the attribute.

offset

The offset of the data from the start of the buffer data.

format

The format of the attribute's data.