Contents

functionHandle(withName:stage:)

Obtains a function handle for the a specific function this pipeline links at the Metal IR level.

Declaration

func functionHandle(withName name: String, stage: MTLRenderStages) -> (any MTLFunctionHandle)?

Parameters

  • name:

    A string containing the name of the function.

  • stage:

    The shader stage that uses the function.

Return Value

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