<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ComputeNodeGraph/Node",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compute Graph",
      "ComputeGraph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0a4NodeB0V0C0V"
  },
  "title" : "ComputeNodeGraph.Node"
}
-->

# ComputeNodeGraph.Node

```
struct Node
```

## Topics

### Initializers

[`init(definition: ComputeNodeGraph.NodeDefinition, label: String?)`](/documentation/ComputeGraph/ComputeNodeGraph/Node/init(definition:label:))

### Instance Properties

[`var definition: ComputeNodeGraph.NodeDefinition`](/documentation/ComputeGraph/ComputeNodeGraph/Node/definition)

[`var kind: ComputeNodeGraph.Node.Kind`](/documentation/ComputeGraph/ComputeNodeGraph/Node/kind-swift.property)

Type of the node

[`var label: String?`](/documentation/ComputeGraph/ComputeNodeGraph/Node/label)

Optional user-provided label for the node

[`var metadata: ComputeNodeGraph.Metadata?`](/documentation/ComputeGraph/ComputeNodeGraph/Node/metadata)

Node metadata – data which is not needed during compilation but might be useful
at edit time.

[`var uniforms: [Data?]`](/documentation/ComputeGraph/ComputeNodeGraph/Node/uniforms)

Uniform values for the node.

### Instance Methods

[`func input<V>(at: Int) -> V?`](/documentation/ComputeGraph/ComputeNodeGraph/Node/input(at:))

[`func input<V>(named: String) -> V?`](/documentation/ComputeGraph/ComputeNodeGraph/Node/input(named:))

[`func inputData(named: String) -> Data?`](/documentation/ComputeGraph/ComputeNodeGraph/Node/inputData(named:))

[`func setInput(String, String) -> Bool`](/documentation/ComputeGraph/ComputeNodeGraph/Node/setInput(_:_:)-2ittk)

[`func setInput(String, Data) -> Bool`](/documentation/ComputeGraph/ComputeNodeGraph/Node/setInput(_:_:)-35srn)

[`func setInput(String, Bool) -> Bool`](/documentation/ComputeGraph/ComputeNodeGraph/Node/setInput(_:_:)-3yk57)

[`func setInput<V>(String, V) -> Bool`](/documentation/ComputeGraph/ComputeNodeGraph/Node/setInput(_:_:)-9n5yb)

[`func setInput<V>(at: Int, V)`](/documentation/ComputeGraph/ComputeNodeGraph/Node/setInput(at:_:)-95j9n)

[`func setInput(at: Int, Data?)`](/documentation/ComputeGraph/ComputeNodeGraph/Node/setInput(at:_:)-9xg3z)

### Enumerations

[`enum Kind`](/documentation/ComputeGraph/ComputeNodeGraph/Node/Kind-swift.enum)

## Relationships

### Conforms To

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

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

[`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)