<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLSamplerMinMagFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLSamplerMinMagFilter"
  },
  "title" : "MTLSamplerMinMagFilter"
}
-->

# MTLSamplerMinMagFilter

Filtering options for determining which pixel value is returned within a mipmap level.

```
enum MTLSamplerMinMagFilter
```

## Topics

### Filter options

[`MTLSamplerMinMagFilter.nearest`](/documentation/Metal/MTLSamplerMinMagFilter/nearest)

Select the single pixel nearest to the sample point.

[`MTLSamplerMinMagFilter.linear`](/documentation/Metal/MTLSamplerMinMagFilter/linear)

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



---

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)