Controls what is done with fragments outside of the near or far planes.
Required.
SDKs
- iOS 11.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Metal
Declaration
func setDepthClipMode(_ depthClipMode: MTLDepth Clip Mode)
Parameters
depthClipMode
The mode that determines how to handle fragments outside of the near or far planes.
Discussion
Use depth clipping to ignore fragments outside the z-axis boundaries of a viewing volume. Depth clipping is supported on all macOS GPU families and iOS family 4 and later.
The default value is MTLDepth
.