<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ShaderGraph/init(named:inputs:outputs:nodeLibrary:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:11ShaderGraphAAC5named6inputs7outputs11nodeLibraryABSS_SayAB14NodeDefinitionV5InputVGSayAH6OutputVGAB0hG0CtKcfc"
  },
  "title" : "init(named:inputs:outputs:nodeLibrary:)"
}
-->

# init(named:inputs:outputs:nodeLibrary:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)