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

# ShaderGraph.NodeDefinition.Input

```
struct Input
```

## Topics

### Initializers

[`init(name: String, type: ShaderGraph.DataType, isUniform: Bool, semanticType: ShaderGraph.NodeDefinition.SemanticType?, defaultValue: ShaderGraph.Value?)`](/documentation/RealityKit/ShaderGraph/NodeDefinition/Input/init(name:type:isUniform:semanticType:defaultValue:))

### Instance Properties

[`let defaultValue: ShaderGraph.Value?`](/documentation/RealityKit/ShaderGraph/NodeDefinition/Input/defaultValue)

The default value for this input, if any exists.

[`let isUniform: Bool`](/documentation/RealityKit/ShaderGraph/NodeDefinition/Input/isUniform)

Whether the value is uniform and must be set at compile-time

[`let name: String`](/documentation/RealityKit/ShaderGraph/NodeDefinition/Input/name)

The unique name of this input in its definition.

[`let semanticType: ShaderGraph.NodeDefinition.SemanticType?`](/documentation/RealityKit/ShaderGraph/NodeDefinition/Input/semanticType)

The original type of this input.

[`let type: ShaderGraph.DataType`](/documentation/RealityKit/ShaderGraph/NodeDefinition/Input/type)

The type of the input.

## 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)