<!--
{
  "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/MTLRenderPassSampleBufferAttachmentDescriptorArray",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLRenderPassSampleBufferAttachmentDescriptorArray"
  },
  "title" : "MTLRenderPassSampleBufferAttachmentDescriptorArray"
}
-->

# MTLRenderPassSampleBufferAttachmentDescriptorArray

An array of sample buffer attachments for a render pass.

```
class MTLRenderPassSampleBufferAttachmentDescriptorArray
```

## Topics

### Accessing a sample buffer attachment

[`-  objectAtIndexedSubscript:`](/documentation/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArray/subscript(_:))

Returns the descriptor object for the specified sample buffer attachment.

[`-  setObject:atIndexedSubscript:`](/documentation/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArray/setObject:atIndexedSubscript:)

Sets the descriptor object for the specified sample buffer attachment.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)