Contents

functionHandle(function:stage:)

Obtains the function handle for a specific function this pipeline state links at the binary level.

Declaration

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

Parameters

  • function:

    A binary function to retrieve the handle.

  • stage:

    The shader stage that uses the function.

Return Value

A function handle representing the function if present, otherwise nil.