Contents

makeShaderGraphFunctions(shaderGraph:constantValues:)

A synchronous variant of Makeshadergraphfunctions(shadergraph:constantvalues:) for non-async callers.

Declaration

final func makeShaderGraphFunctions(shaderGraph: ShaderGraph, constantValues: MTLFunctionConstantValues) throws -> sending LowLevelMaterialResource.ShaderGraphOutput

Parameters

  • shaderGraph:

    The ShaderGraph to compile.

  • constantValues:

    The Metal function constant values used to specialize the compiled functions.

Return Value

The compiled functions for use in a LowLevelMaterialResource.