---
title: MTLDepthClipMode.clamp
framework: metal
role: symbol
role_heading: Case
path: metal/mtldepthclipmode/clamp
---

# MTLDepthClipMode.clamp

Clamp fragments outside the near or far planes.

## Declaration

```swift
case clamp
```

## See Also

### Clip modes

- [MTLDepthClipMode.clip](metal/mtldepthclipmode/clip.md)
