Class

MTLComputePipelineReflection

Information about the arguments of a compute function.

Declaration

class 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 makeComputePipelineState(function:options:reflection:) or makeComputePipelineState(function:options:completionHandler:) method of MTLDevice to create both a MTLComputePipelineState object and a MTLComputePipelineReflection object.

Topics

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 MTLComputePipelineReflection object.

Relationships

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.