<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLMaterialTextureWrapMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:@E@MDLMaterialTextureWrapMode"
  },
  "title" : "MDLMaterialTextureWrapMode"
}
-->

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

```
enum MDLMaterialTextureWrapMode
```

## Topics

### Constants

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

Sampling at any texture coordinate outside the `0.0` to `1.0` range returns the texel color from the nearest edge.

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

Sampling at texture coordinates outside the `0.0` to `1.0` range results in a repeated tiling effect.

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

Sampling at texture coordinates outside the `0.0` to `1.0` range results in a mirrored tiling effect.

## Relationships

### Conforms To

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

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

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

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

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

[`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)