Contents

functionHandle(function:stage:)

Creates a function handle for a shader.

Declaration

func functionHandle(function: any MTLFunction, stage: MTLRenderStages) -> (any MTLFunctionHandle)?

Parameters

  • function:

    An Mtlfunction instance that represents the shader the method creates a handle for.

  • stage:

    An Mtlrenderstages instance that represents the rendering stage that invokes the shader that function represents.

See Also

Creating function handles and tables