---
title: MTLBlitPassSampleBufferAttachmentDescriptor
framework: metal
role: symbol
role_heading: Class
path: metal/mtlblitpasssamplebufferattachmentdescriptor
---

# MTLBlitPassSampleBufferAttachmentDescriptor

A configuration that instructs the GPU where to store counter data from the beginning and end of a blit pass.

## Declaration

```swift
class MTLBlitPassSampleBufferAttachmentDescriptor
```

## Mentioned in

Sampling GPU data into counter sample buffers

## Overview

Overview See Sampling GPU data into counter sample buffers for more context about configuring instances of this type. That article is one of a series of articles in GPU counters and counter sample buffers.

## Topics

### Configuring the sample buffer attachment

- [sampleBuffer](metal/mtlblitpasssamplebufferattachmentdescriptor/samplebuffer.md)
- [startOfEncoderSampleIndex](metal/mtlblitpasssamplebufferattachmentdescriptor/startofencodersampleindex.md)
- [endOfEncoderSampleIndex](metal/mtlblitpasssamplebufferattachmentdescriptor/endofencodersampleindex.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Configuring a blit command encoder

- [MTLBlitPassDescriptor](metal/mtlblitpassdescriptor.md)
- [MTLBlitPassSampleBufferAttachmentDescriptorArray](metal/mtlblitpasssamplebufferattachmentdescriptorarray.md)
