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

# ComputeNodeGraph.Assembly.TextureBinding

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

```
struct TextureBinding
```

## Overview

A texture binding pairs an [`ComputeNodeGraph.Assembly.Attachment`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Attachment) (how the texture is connected to the graph)
with an optional `MTLTextureType` indicating the texture’s dimensionality.

## Topics

### Initializers

[`init(attachment: ComputeNodeGraph.Assembly.Attachment, type: MTLTextureType?)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/TextureBinding/init(attachment:type:))

### Instance Properties

[`var attachment: ComputeNodeGraph.Assembly.Attachment`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/TextureBinding/attachment)

The attachment point that provides this texture.

[`var type: MTLTextureType?`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/TextureBinding/type)

The texture type (e.g. `.type2D`, `.typeCube`), or `nil` if unspecified.

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