<!--
{
  "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/Port/Options",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0a4NodeB0V4PortO7OptionsV"
  },
  "title" : "ComputeNodeGraph.Port.Options"
}
-->

# ComputeNodeGraph.Port.Options

Flags that modify how a port’s value is treated during compilation and execution.

```
struct Options
```

## Topics

### Type Properties

[`static let argument: ComputeNodeGraph.Port.Options`](/documentation/ComputeGraph/ComputeNodeGraph/Port/Options/argument)

Port is an argument to a runtime function.

[`static let compile: ComputeNodeGraph.Port.Options`](/documentation/ComputeGraph/ComputeNodeGraph/Port/Options/compile)

Port affects compilation.

[`static let constant: ComputeNodeGraph.Port.Options`](/documentation/ComputeGraph/ComputeNodeGraph/Port/Options/constant)

Port is constant and doesn’t need to be changeable.

[`static let externalReference: ComputeNodeGraph.Port.Options`](/documentation/ComputeGraph/ComputeNodeGraph/Port/Options/externalReference)

The port references a value outside of the graph, such as by filename

[`static let optional: ComputeNodeGraph.Port.Options`](/documentation/ComputeGraph/ComputeNodeGraph/Port/Options/optional)

The value of this port is optional (may be nil)

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

---

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)