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

# MTLResourceStatePassSampleBufferAttachmentDescriptorArray

An array of sample buffer attachments for a resource state pass.

```
class MTLResourceStatePassSampleBufferAttachmentDescriptorArray
```

## Topics

### Accessing a sample buffer attachment

[`subscript(_:)`](/documentation/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArray/subscript(_:))

Returns the descriptor object for the specified sample buffer attachment.

[`setObject:atIndexedSubscript:`](/documentation/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArray/setObject:atIndexedSubscript:)

Sets the descriptor object for the specified sample buffer attachment.



---

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)