<!--
{
  "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/MDLTextureSampler",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLTextureSampler"
  },
  "title" : "MDLTextureSampler"
}
-->

# MDLTextureSampler

An object that pairs a source of texture data with sampling parameters to be used in rendering the texture.

```
class MDLTextureSampler
```

## Overview

You use texture samplers as material property values with the [`MDLMaterialProperty`](/documentation/ModelIO/MDLMaterialProperty) class.

## Topics

### Working with Texture Parameters

[`texture`](/documentation/ModelIO/MDLTextureSampler/texture)

The texture object that provides image data for sampling.

[`hardwareFilter`](/documentation/ModelIO/MDLTextureSampler/hardwareFilter)

An object that describes filtering modes for sampling from the texture.

[`transform`](/documentation/ModelIO/MDLTextureSampler/transform)

The transformation to be applied to texture coordinate data before sampling from the texture.

## Relationships

### Conforms To

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

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

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

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

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

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

### 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)