<!--
{
  "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/Edge",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:11ShaderGraphAAC4EdgeV"
  },
  "title" : "ShaderGraph.Edge"
}
-->

# ShaderGraph.Edge

Represents a connection between two nodes in a shader graph.

```
struct Edge
```

## Topics

### Initializers

[`init(outputNode: String, outputPort: String?, inputNode: String, inputPort: String)`](/documentation/RealityKit/ShaderGraph/Edge/init(outputNode:outputPort:inputNode:inputPort:))

### Instance Properties

[`var from: String`](/documentation/RealityKit/ShaderGraph/Edge/from)

[`var inputNode: String`](/documentation/RealityKit/ShaderGraph/Edge/inputNode)

The name of the node receiving the input value.

[`var inputPort: String`](/documentation/RealityKit/ShaderGraph/Edge/inputPort)

The name of the input port on the destination node.

[`var outputNode: String`](/documentation/RealityKit/ShaderGraph/Edge/outputNode)

The name of the node providing the output value.

[`var outputPort: String?`](/documentation/RealityKit/ShaderGraph/Edge/outputPort)

The name of the output port on the source node.

[`var to: String`](/documentation/RealityKit/ShaderGraph/Edge/to)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

---

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)