---
title: MTLResourceStatePassSampleBufferAttachmentDescriptor
framework: metal
role: symbol
role_heading: Class
path: metal/mtlresourcestatepasssamplebufferattachmentdescriptor
---

# MTLResourceStatePassSampleBufferAttachmentDescriptor

A description of where to store GPU counter information at the start and end of a resource state pass.

## Declaration

```swift
class MTLResourceStatePassSampleBufferAttachmentDescriptor
```

## Mentioned in

Sampling GPU data into counter sample buffers

## Topics

### Configuring the sample buffer attachment

- [sampleBuffer](metal/mtlresourcestatepasssamplebufferattachmentdescriptor/samplebuffer.md)
- [startOfEncoderSampleIndex](metal/mtlresourcestatepasssamplebufferattachmentdescriptor/startofencodersampleindex.md)
- [endOfEncoderSampleIndex](metal/mtlresourcestatepasssamplebufferattachmentdescriptor/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

### Sparse textures

- [Managing sparse texture memory](metal/managing-sparse-texture-memory.md)
- [Creating sparse heaps and sparse textures](metal/creating-sparse-heaps-and-sparse-textures.md)
- [Converting between pixel regions and sparse tile regions](metal/converting-between-pixel-regions-and-sparse-tile-regions.md)
- [Assigning memory to sparse textures](metal/assigning-memory-to-sparse-textures.md)
- [Reading and writing to sparse textures](metal/reading-and-writing-to-sparse-textures.md)
- [Estimating how often a texture region is accessed](metal/estimating-how-often-a-texture-region-is-accessed.md)
- [MTLResourceStatePassDescriptor](metal/mtlresourcestatepassdescriptor.md)
- [MTLResourceStatePassSampleBufferAttachmentDescriptorArray](metal/mtlresourcestatepasssamplebufferattachmentdescriptorarray.md)
- [MTLResourceStateCommandEncoder](metal/mtlresourcestatecommandencoder.md)
- [MTLMapIndirectArguments](metal/mtlmapindirectarguments.md)
