<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLTextureFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLTextureFilter"
  },
  "title" : "MDLTextureFilter"
}
-->

# MDLTextureFilter

A description of filtering modes for a renderer to use when sampling from a texture.

```
class MDLTextureFilter
```

## Overview

A texture filter, together with a [`MDLTexture`](/documentation/ModelIO/MDLTexture) object and transform information, form a [`MDLTextureSampler`](/documentation/ModelIO/MDLTextureSampler) object, which describes a texture and its rendering parameters for use in rendering one aspect of a [`MDLMaterial`](/documentation/ModelIO/MDLMaterial) object’s surface appearance.

## Topics

### Managing Texture Coordinate Wrap Modes

[`sWrapMode`](/documentation/ModelIO/MDLTextureFilter/sWrapMode)

The coordinate wrapping mode for texture t-coordinates.

[`tWrapMode`](/documentation/ModelIO/MDLTextureFilter/tWrapMode)

The coordinate wrapping mode for texture t-coordinates.

[`rWrapMode`](/documentation/ModelIO/MDLTextureFilter/rWrapMode)

The coordinate wrapping mode for texture r-coordinates.

### Managing Texture Filter Modes

[`minFilter`](/documentation/ModelIO/MDLTextureFilter/minFilter)

The filter mode for rendering textures at sizes smaller than that of the original image.

[`magFilter`](/documentation/ModelIO/MDLTextureFilter/magFilter)

The filter mode for rendering textures at sizes larger than that of the original image.

[`mipFilter`](/documentation/ModelIO/MDLTextureFilter/mipFilter)

The filter mode for rendering textures using mipmapping.

### Constants

[`MDLMaterialTextureWrapMode`](/documentation/ModelIO/MDLMaterialTextureWrapMode)

Modes for sampling textures at coordinates outside the texture bounds, used by the [`sWrapMode`](/documentation/ModelIO/MDLTextureFilter/sWrapMode), [`tWrapMode`](/documentation/ModelIO/MDLTextureFilter/tWrapMode), and [`rWrapMode`](/documentation/ModelIO/MDLTextureFilter/rWrapMode) properties.

[`MDLMaterialTextureFilterMode`](/documentation/ModelIO/MDLMaterialTextureFilterMode)

Modes for sampling textures at coordinates between texels, used by the [`minFilter`](/documentation/ModelIO/MDLTextureFilter/minFilter) and [`magFilter`](/documentation/ModelIO/MDLTextureFilter/magFilter) properties.

[`MDLMaterialMipMapFilterMode`](/documentation/ModelIO/MDLMaterialMipMapFilterMode)

Modes for sampling textures at sizes between mipmap levels, used by the [`mipFilter`](/documentation/ModelIO/MDLTextureFilter/mipFilter) property.

## Relationships

### Conforms To

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)