---
title: MDLMaterialTextureWrapMode.clamp
framework: modelio
role: symbol
role_heading: Case
path: modelio/mdlmaterialtexturewrapmode/clamp
---

# MDLMaterialTextureWrapMode.clamp

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

## Declaration

```swift
case clamp
```

## See Also

### Constants

- [MDLMaterialTextureWrapMode.repeat](modelio/mdlmaterialtexturewrapmode/repeat.md)
- [MDLMaterialTextureWrapMode.mirror](modelio/mdlmaterialtexturewrapmode/mirror.md)
