<!--
{
  "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

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

Select the single pixel nearest to the sample point.

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

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

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)