Contents

init(named:inputs:outputs:nodeLibrary:)

Creates a shader graph with the given name, inputs, and outputs.

Declaration

init(named name: String, inputs: [ShaderGraph.NodeDefinition.Input], outputs: [ShaderGraph.NodeDefinition.Output], nodeLibrary: ShaderGraph.NodeLibrary) throws

Parameters

  • name:

    The name of the graph.

  • inputs:

    The inputs of the graph.

  • outputs:

    The outputs of the graph.

  • nodeLibrary:

    The node library to use for this graph.