---
title: maxArgumentBufferSamplerCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtldevice/maxargumentbuffersamplercount
---

# maxArgumentBufferSamplerCount

The maximum number of unique argument buffer samplers per app.

## Declaration

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

## Discussion

Discussion This limit only applies to samplers that support argument buffers (see supportArgumentBuffers). An MTLSamplerState instance is only unique if the properties of the MTLSamplerDescriptor instance that created it are unique. For example, two samplers with equal minFilter values but different magFilter values are unique. See Improving CPU performance by using argument buffers for more information about argument buffer tiers, limits, and capabilities.

## See Also

### Creating argument buffer encoders

- [argumentBuffersSupport](metal/mtldevice/argumentbufferssupport.md)
- [makeArgumentEncoder(arguments:)](metal/mtldevice/makeargumentencoder(arguments:).md)
- [makeArgumentEncoder(bufferBinding:)](metal/mtldevice/makeargumentencoder(bufferbinding:).md)
