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

# sampleBufferAttachments

An array of counter sample buffer attachments that you configure for a blit pass.

```
var sampleBufferAttachments: MTLBlitPassSampleBufferAttachmentDescriptorArray { get }
```

## Discussion

See [Sampling GPU data into counter sample buffers](/documentation/Metal/sampling-gpu-data-into-counter-sample-buffers) for more context about configuring this property. That article is one of a series of articles in [GPU counters and counter sample buffers](/documentation/Metal/gpu-counters-and-counter-sample-buffers).

---

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)