Enumeration

MTLDataType

Data types for function arguments.

Declaration

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

Topics

Data Types

MTLDataTypeNone

The argument doesn't correspond to any data type and is returned only if the argument has no valid data type.

MTLDataTypeStruct

A structure.

MTLDataTypeSampler

A texture sampler.

MTLDataTypeR16Snorm

Ordinary format with one 16-bit, normalized, signed integer component.

MTLDataTypeR16Unorm

Ordinary format with one 16-bit, normalized, unsigned integer component.

MTLDataTypeR8Snorm

Ordinary format with one 8-bit, normalized, signed integer component.

MTLDataTypeR8Unorm

Ordinary format with one 8-bit, normalized, unsigned integer component.

MTLDataTypeRG11B10Float

Packed 32-bit format with two 11-bit (for red and green) and one 10-bit (for blue) floating-point color components.

MTLDataTypeRG16Snorm

Ordinary format with two 16-bit, normalized, signed integer components.

MTLDataTypeRG16Unorm

Ordinary format with two 16-bit, normalized, unsigned integer components.

MTLDataTypeRG8Snorm

Ordinary format with two 8-bit, normalized, signed integer components.

MTLDataTypeRG8Unorm

Ordinary format with two 8-bit, normalized, unsigned integer components.

MTLDataTypeRGB10A2Unorm

Packed 32-bit format with normalized, unsigned integer color components.

MTLDataTypeRGB9E5Float

Packed 32-bit format with three 9-bit, floating-point color components.

MTLDataTypeRGBA16Snorm

Ordinary format with four 16-bit, normalized, signed integer components in RGBA order.

MTLDataTypeRGBA16Unorm

Ordinary format with four 16-bit, normalized, unsigned integer components in RGBA order.

MTLDataTypeRGBA8Snorm

Ordinary format with four 8-bit, normalized, signed integer components in RGBA order.

MTLDataTypeRGBA8Unorm

Ordinary format with four 8-bit, normalized, unsigned integer components in RGBA order.

MTLDataTypeRGBA8Unorm_sRGB

Ordinary format with four 8-bit, normalized, unsigned integer components in RGBA order with conversion between sRGB and linear space.

MTLDataTypeFloat

A 32-bit floating-point value.

MTLDataTypeFloat2

A two-component vector with 32-bit floating-point values.

MTLDataTypeFloat3

A three-component vector with 32-bit floating-point values.

MTLDataTypeFloat4

A four-component vector with 32-bit floating-point values.

MTLDataTypeFloat2x2

A 2x2 component matrix with 32-bit floating-point values.

MTLDataTypeFloat2x3

A 2x3 component matrix with 32-bit floating-point values.

MTLDataTypeFloat2x4

A 2x4 component matrix with 32-bit floating-point values.

MTLDataTypeFloat3x2

A 3x2 component matrix with 32-bit floating-point values.

MTLDataTypeFloat3x3

A 3x3 component matrix with 32-bit floating-point values.

MTLDataTypeFloat3x4

A 3x4 component matrix with 32-bit floating-point values.

MTLDataTypeFloat4x2

A 4x2 component matrix with 32-bit floating-point values.

MTLDataTypeFloat4x3

A 4x3 component matrix with 32-bit floating-point values.

MTLDataTypeFloat4x4

A 4x4 component matrix with 32-bit floating-point values.

MTLDataTypeHalf

A 16-bit floating-point value.

MTLDataTypeHalf2

A two-component vector with 16-bit floating-point values.

MTLDataTypeHalf3

A three-component vector with 16-bit floating-point values.

MTLDataTypeHalf4

A four-component vector with 16-bit floating-point values.

MTLDataTypeHalf2x2

A 2x2 component matrix with 16-bit floating-point values.

MTLDataTypeHalf2x3

A 2x3 component matrix with 16-bit floating-point values.

MTLDataTypeHalf2x4

A 2x4 component matrix with 16-bit floating-point values.

MTLDataTypeHalf3x2

A 3x2 component matrix with 16-bit floating-point values.

MTLDataTypeHalf3x3

A 3x3 component matrix with 16-bit floating-point values.

MTLDataTypeHalf3x4

A 3x4 component matrix with 16-bit floating-point values.

MTLDataTypeHalf4x2

A 4x2 component matrix with 16-bit floating-point values.

MTLDataTypeHalf4x3

A 4x3 component matrix with 16-bit floating-point values.

MTLDataTypeHalf4x4

A 4x4 component matrix with 16-bit floating-point values.

MTLDataTypeInt

A signed, 32-bit integer value.

MTLDataTypeInt2

A two-component vector with signed, 32-bit integer values.

MTLDataTypeInt3

A three-component vector with signed, 32-bit integer values.

MTLDataTypeInt4

A four-component vector with signed, 32-bit integer values.

MTLDataTypeUInt

An unsigned, 32-bit integer value.

MTLDataTypeUInt2

A two-component vector with unsigned, 32-bit integer values.

MTLDataTypeUInt3

A three-component vector with unsigned, 32-bit integer values.

MTLDataTypeUInt4

A four-component vector with unsigned, 32-bit integer values.

MTLDataTypeShort

A signed, 16-bit integer value.

MTLDataTypeShort2

A two-component vector with signed, 16-bit integer values.

MTLDataTypeShort3

A three-component vector with signed, 16-bit integer values.

MTLDataTypeShort4

A four-component vector with signed, 16-bit integer values.

MTLDataTypeUShort

An unsigned, 16-bit integer value.

MTLDataTypeUShort2

A two-component vector with unsigned, 16-bit integer values.

MTLDataTypeUShort3

A three-component vector with unsigned, 16-bit integer values.

MTLDataTypeUShort4

A four-component vector with unsigned, 16-bit integer values.

MTLDataTypeChar

A signed, 8-bit integer value.

MTLDataTypeChar2

A two-component vector with signed, 8-bit integer values.

MTLDataTypeChar3

A three-component vector with signed, 8-bit integer values.

MTLDataTypeChar4

A four-component vector with signed, 8-bit integer values.

MTLDataTypeUChar

An unsigned, 8-bit integer value.

MTLDataTypeUChar2

A two-component vector with unsigned, 8-bit integer values.

MTLDataTypeUChar3

A three-component vector with unsigned, 8-bit integer values.

MTLDataTypeUChar4

A four-component vector with unsigned, 8-bit integer values.

MTLDataTypeBool

A Boolean value.

MTLDataTypeBool2

A two-component vector with Boolean values.

MTLDataTypeBool3

A three-component vector with Boolean values.

MTLDataTypeBool4

A four-component vector with Boolean values.

MTLDataTypeIndirectCommandBuffer

An indirect command buffer.

MTLDataTypeRenderPipeline

A render pipeline.

MTLDataTypeComputePipeline

A compute pipeline.

See Also

Function Argument Information

MTLPipelineOption

The compilation options that determine which argument information to provide.

MTLComputePipelineReflection

Information about the arguments of a compute function.

MTLRenderPipelineReflection

Information about the arguments of a graphics function.

MTLArgument

Information about an argument of a graphics or compute function.

MTLType

A description of a data type.

MTLStructType

A description of a structure.

MTLArrayType

A description of an array.

MTLPointerType

A description of a pointer.

MTLTextureReferenceType

A description of a texture.

MTLArgumentType

The resource type associated with an argument of a function.

MTLArgumentAccess

Function access restrictions to argument data in the shading language code.