Instance Method

elementStructType

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

Declaration

- (MTLStructType *)elementStructType;

Return Value

An object that describes the struct. If the array elements aren't structs, this method returns nil.

Discussion

Use this method if elementType is MTLDataTypeStruct.

See Also

Obtaining Details for Complex Array Elements

- elementArrayType

Provides a description of the underlying type when an array holds other arrays 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.