Class

MTLComputePipelineReflection

Information about the arguments of a compute function.

Declaration

@interface MTLComputePipelineReflection : NSObject

Overview

A MTLComputePipelineReflection object provides access to the arguments of the compute function used in a MTLComputePipelineState object. A MTLComputePipelineReflection object can be created along with a MTLComputePipelineState object. Don't create a MTLComputePipelineReflection object directly. Instead, call either the newComputePipelineStateWithFunction:options:reflection:error: or newComputePipelineStateWithFunction:options:completionHandler: method of MTLDevice to create both a MTLComputePipelineState object and a MTLComputePipelineReflection object.

Topics

Obtaining the Arguments of the Compute Function

arguments

An array of objects that describe the arguments of a compute function.

Releasing the Reflection Object

MTLAutoreleasedComputePipelineReflection

A convenience type alias for an autoreleased MTLComputePipelineReflection object.

Relationships

Inherits From

See Also

Function Argument Information

MTLPipelineOption

The compilation options that determine which argument information to provide.

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.

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.