Class

MTLStructType

A description of a structure.

Declaration

@interface MTLStructType : MTLType

Overview

MTLStructType is part of the reflection API that allows Metal framework code to query details of a struct that is passed as an argument of a Metal shading language function. Don't create MTLStructType objects directly; instead query the bufferStructType property of a MTLArgument object, or call the structType method for a MTLStructMember object. To examine the details of the struct, you can recursively drill down the members property of the MTLStructType object, which contains details about struct members, each of which is represented by a MTLStructMember object.

Topics

Obtaining Information about Struct Members

members

An array of objects that describe the fields in the struct.

- memberByName:

Provides a representation of a struct member.

MTLStructMember

An object that provides information about a field in a struct.

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.

MTLArrayType

A description of an array.

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