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

# MTLResourceStatePassDescriptor

A configuration for a resource state pass, used to create a resource state command encoder.

```
class MTLResourceStatePassDescriptor
```

## Topics

### Creating a resource state pass descriptor

[`resourceStatePassDescriptor`](/documentation/Metal/MTLResourceStatePassDescriptor/resourceStatePassDescriptor)

Creates a new resource state pass descriptor.

### Specifying sample buffers for GPU counters

[`sampleBufferAttachments`](/documentation/Metal/MTLResourceStatePassDescriptor/sampleBufferAttachments)

The array of sample buffers that the resource state pass can access.



---

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)