Retrieve information about rendering and compute functions.



protocol MTLFunction

An object that represents a public shader function in a Metal library.

Function Variants

Use function constants to create variants of a function.

class MTLFunctionConstant

A constant used to specialize the behavior of a shader.

class MTLFunctionConstantValues

A set of constant values used to specialize a graphics or compute function.

Function Argument Information

Retrieve information about a function's arguments.

struct MTLPipelineOption

The compilation options that determine which argument information to provide.

class MTLComputePipelineReflection

Information about the arguments of a compute function.

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.

See Also



Organize your shaders into libraries.