---
title: "init(attachment:type:)"
framework: Compute Graph
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computenodegraph/assembly/texturebinding/init(attachment:type:)"
---

# init(attachment:type:)

## Declaration

```swift
init(attachment: ComputeNodeGraph.Assembly.Attachment, type: MTLTextureType? = nil)
```
