---
title: MTLDepthClipMode
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtldepthclipmode
---

# MTLDepthClipMode

The mode that determines how to deal with fragments outside of the near or far planes.

## Declaration

```swift
enum MTLDepthClipMode
```

## Topics

### Clip modes

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

### Initializers

- [init(rawValue:)](metal/mtldepthclipmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Encoding a render pass

- [MTL4RenderCommandEncoder](metal/mtl4rendercommandencoder.md)
- [MTLRenderCommandEncoder](metal/mtlrendercommandencoder.md)
- [MTL4RenderEncoderOptions](metal/mtl4renderencoderoptions.md)
- [MTLTriangleFillMode](metal/mtltrianglefillmode.md)
- [MTLWinding](metal/mtlwinding.md)
- [MTLCullMode](metal/mtlcullmode.md)
- [MTLPrimitiveType](metal/mtlprimitivetype.md)
- [MTLIndexType](metal/mtlindextype.md)
- [MTLVisibilityResultMode](metal/mtlvisibilityresultmode.md)
- [MTLVisibilityResultType](metal/mtlvisibilityresulttype.md)
