Information about the arguments of a graphics function.


class MTLRenderPipelineReflection : NSObject


A MTLRenderPipelineReflection object provides access to the arguments of a vertex or fragment function of an MTLRenderPipelineState object. An MTLRenderPipelineReflection object can be created along with a MTLRenderPipelineState object. Don't create a MTLRenderPipelineReflection object directly; instead call either the makeRenderPipelineState(descriptor:options:reflection:) or makeRenderPipelineState(descriptor:options:completionHandler:) method of MTLDevice to create both an MTLRenderPipelineState object and an MTLRenderPipelineReflection object.

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


Obtaining Argument Information

var vertexArguments: [MTLArgument]?

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

var fragmentArguments: [MTLArgument]?

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

var tileArguments: [MTLArgument]?

An array of objects that describe the arguments of a tile shading function.

Releasing the Reflection Object

typealias MTLAutoreleasedRenderPipelineReflection

A convenience type alias for an autoreleased MTLRenderPipelineReflection object.


Inherits From

Conforms To

See Also

Function Argument Information

struct MTLPipelineOption

The compilation options that determine which argument information to provide.

class MTLComputePipelineReflection

Information about the arguments of a compute 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.