---
title: MTLSamplerMinMagFilter.linear
framework: metal
role: symbol
role_heading: Case
path: metal/mtlsamplerminmagfilter/linear
---

# MTLSamplerMinMagFilter.linear

Select two pixels in each dimension and interpolate linearly between them.

## Declaration

```swift
case linear
```

## Discussion

Discussion Support for linear filtering varies by GPU and the format of the texture being sampled. For example, you can’t use linear filtering on textures with an integer format, and only some device objects support linear filtering for textures with a floating-point format. To determine whether linear filtering is available for a specific texture format, see: Metal feature set tables (PDF) Metal feature set tables (Numbers)

## See Also

### Filter options

- [MTLSamplerMinMagFilter.nearest](metal/mtlsamplerminmagfilter/nearest.md)
