Contents

setDepthClipMode(_:)

Configures how the render pipeline handles fragments outside the near and far planes of the view frustum.

Declaration

func setDepthClipMode(_ depthClipMode: MTLDepthClipMode)

Parameters

  • depthClipMode:

    The mode that determines how to handle fragments outside the near and far planes.

Discussion

You can use depth clipping to ignore fragments outside the z-axis boundaries of a viewing volume.

The render pass’s default clip mode is MTLDepthClipMode.clip.

See Also

Configuring depth and stencil behavior