<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArray/subscript(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLBlitPassSampleBufferAttachmentDescriptorArray(im)objectAtIndexedSubscript:"
  },
  "title" : "subscript(_:)"
}
-->

# subscript(_:)

Accesses one of the array’s blit pass sample buffer attachment descriptor instances.

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

## Parameters

`attachmentIndex`

An index of one of the array’s [`MTLBlitPassSampleBufferAttachmentDescriptor`](/documentation/Metal/MTLBlitPassSampleBufferAttachmentDescriptor) instances.

## Overview

---

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)