Information about the arguments of a compute function.


class MTLComputePipelineReflection : NSObject


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

MTLComputePipelineReflection objects can use a significant amount of memory; release any strong references to them after you finish creating pipeline objects.


Obtaining the Arguments of the Compute Function

var arguments: [MTLArgument]

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

Releasing the Reflection Object

typealias MTLAutoreleasedComputePipelineReflection

A convenience type alias for an autoreleased compute pipeline reflection object.


Inherits From

Conforms To

See Also

Function Argument Information

struct MTLPipelineOption

The compilation options that determine which argument information to provide.

class MTLRenderPipelineReflection

Information about the arguments of a graphics function.

class MTLArgument

Information about an argument of a graphics or compute function.

class MTLType

A description of a data type.

class MTLStructType

A description of a structure.

class MTLArrayType

A description of an array.

class MTLPointerType

A description of a pointer.

class MTLTextureReferenceType

A description of a texture.

enum MTLDataType

Data types for function arguments.

enum MTLArgumentType

The resource type associated with an argument of a function.

enum MTLArgumentAccess

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