---
title: ComputeNodeGraph.Assembly.BufferBinding
framework: Compute Graph
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/computenodegraph/assembly/bufferbinding
---

# ComputeNodeGraph.Assembly.BufferBinding

Describes how a Metal buffer is bound to a compute pipeline stage.

## Declaration

```swift
struct BufferBinding
```

## Overview

Overview A buffer binding pairs an ComputeNodeGraph.Assembly.Attachment (how the buffer is connected to the graph) with an optional ComputeNodeGraph.StateType describing the element layout of the buffer’s contents.

## Topics

### Initializers

- [init(attachment:type:)](computegraph/computenodegraph/assembly/bufferbinding/init(attachment:type:).md)

### Instance Properties

- [attachment](computegraph/computenodegraph/assembly/bufferbinding/attachment.md)
- [type](computegraph/computenodegraph/assembly/bufferbinding/type.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
