---
title: sampleBufferAttachments
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcomputepassdescriptor/samplebufferattachments
---

# sampleBufferAttachments

The sample buffers that the compute pass can access.

## Declaration

```swift
var sampleBufferAttachments: MTLComputePassSampleBufferAttachmentDescriptorArray { get }
```

## Mentioned in

Sampling GPU data into counter sample buffers

## Discussion

Discussion The GPU uses sample buffers to record performance information. See GPU counters and counter sample buffers, Sampling GPU data into counter sample buffers, and MTLCounter for more information.
