<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDevice/maxArgumentBufferSamplerCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(py)maxArgumentBufferSamplerCount"
  },
  "title" : "maxArgumentBufferSamplerCount"
}
-->

# maxArgumentBufferSamplerCount

The maximum number of unique argument buffer samplers per app.

```
var maxArgumentBufferSamplerCount: Int { get }
```

## Discussion

This limit only applies to samplers that support argument buffers (see [`supportArgumentBuffers`](/documentation/Metal/MTLSamplerDescriptor/supportArgumentBuffers)). An [`MTLSamplerState`](/documentation/Metal/MTLSamplerState) instance is only unique if the properties of the [`MTLSamplerDescriptor`](/documentation/Metal/MTLSamplerDescriptor) instance that created it are unique. For example, two samplers with equal [`minFilter`](/documentation/Metal/MTLSamplerDescriptor/minFilter) values but different [`magFilter`](/documentation/Metal/MTLSamplerDescriptor/magFilter) values are unique.

See [Improving CPU performance by using argument buffers](/documentation/Metal/improving-cpu-performance-by-using-argument-buffers) for more information about argument buffer tiers, limits, and capabilities.

---

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)