makeShaderGraphFunctions(shaderGraph:constantValues:)
Compiles a ShaderGraph into a geometry modifier and surface shader.
Declaration
nonisolated(nonsending) final func makeShaderGraphFunctions(shaderGraph: ShaderGraph, constantValues: MTLFunctionConstantValues) async throws -> sending LowLevelMaterialResource.ShaderGraphOutputParameters
- 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.