---
title: "subscript(_:)"
framework: metal
role: symbol
role_heading: Instance Subscript
path: "metal/mtl4renderpipelinecolorattachmentdescriptorarray/subscript(_:)"
---

# subscript(_:)

Accesses a color attachment at a specific index.

## Declaration

```swift
subscript(attachmentIndex: Int) -> MTL4RenderPipelineColorAttachmentDescriptor! { get set }
```

## Parameters

- `attachmentIndex`: Index of the attachment to access.
