Contents

elementStructType()

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

Declaration

func elementStructType() -> MTLStructType?

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 MTLDataType.struct.

See Also

Obtaining details for complex array elements