Contents

init(shaderGraph:inputValues:constantValues:)

Creates a descriptor with the given shader graph and optional initial values.

Declaration

init(shaderGraph: ShaderGraph, inputValues: [String : MaterialParameters.Value] = [:], constantValues: MTLFunctionConstantValues = .init())

Parameters

  • shaderGraph:

    The shader graph describing the shading logic for this program.

  • inputValues:

    Initial values for the inputs declared in the shader graph.

  • constantValues:

    Values for function constant inputs to be baked into the compiled shader.