<!--
{
  "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/Assembly/Attachment",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Compute Graph",
      "ComputeGraph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0a4NodeB0V8AssemblyV10AttachmentO"
  },
  "title" : "ComputeNodeGraph.Assembly.Attachment"
}
-->

# ComputeNodeGraph.Assembly.Attachment

Identifies where a resource is attached in the compute graph.

```
enum Attachment
```

## Overview

Each buffer and texture bound to a compute pipeline is sourced from
a specific attachment point: the graph itself, or a named input or
output port on a node.

## Topics

### Enumeration Cases

[`case graph`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Attachment/graph)

The resource is owned by the graph and shared across all stages.

[`case input(ComputeNodeGraph.Port.Address)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Attachment/input(_:))

The resource is read by an input port at the given address.

[`case output(ComputeNodeGraph.Port.Address)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Attachment/output(_:))

The resource is produced by an output port at the given address.

## Relationships

### Conforms To

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

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

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

---

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)