Class

MTLArrayType

A description of an array.

Declaration

@interface MTLArrayType : MTLType

Overview

A MTLArrayType object provides details about an array parameter. Don't create MTLArrayType objects directly; other reflection objects contain properties to determine if a parameter is an array and to obtain the MTLArrayType object that describes the array.

Topics

Describing the Array Elements

arrayLength

The number of elements in the array.

elementType

The data type of the array’s elements.

stride

The stride between array elements, in bytes.

argumentIndexStride

The stride, in bytes, between argument indices.

Obtaining Details for Complex Array Elements

- elementArrayType

Provides a description of the underlying type when an array holds other arrays as its elements.

- elementStructType

Provides a description of the underlying struct type when an array holds structs as its elements.

- elementPointerType

Provides a description of the underlying pointer type when an array holds pointers as its elements.

- elementTextureReferenceType

Provides a description of the underlying texture type when an array holds textures as its elements.

Relationships

Inherits From

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.

MTLPointerType

A description of a pointer.

MTLTextureReferenceType

A description of a texture.

MTLDataType

Data types for function arguments.

MTLArgumentType

The resource type associated with an argument of a function.

MTLArgumentAccess

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software