---
title: maxAnisotropy
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlsamplerdescriptor/maxanisotropy
---

# maxAnisotropy

The number of samples that can be taken to improve the quality of sample footprints that are anisotropic.

## Declaration

```swift
var maxAnisotropy: Int { get set }
```

## Discussion

Discussion Values need to be between 1 and 16, inclusive. The default value is 1.

## See Also

### Declaring filter modes

- [minFilter](metal/mtlsamplerdescriptor/minfilter.md)
- [magFilter](metal/mtlsamplerdescriptor/magfilter.md)
- [mipFilter](metal/mtlsamplerdescriptor/mipfilter.md)
- [lodMinClamp](metal/mtlsamplerdescriptor/lodminclamp.md)
- [lodMaxClamp](metal/mtlsamplerdescriptor/lodmaxclamp.md)
- [lodAverage](metal/mtlsamplerdescriptor/lodaverage.md)
- [MTLSamplerMinMagFilter](metal/mtlsamplerminmagfilter.md)
- [MTLSamplerMipFilter](metal/mtlsamplermipfilter.md)
