Instance Method

setDepthClipMode:

Controls what is done with fragments outside of the near or far planes.

Required.

Declaration

- (void)setDepthClipMode:(MTLDepthClipMode)depthClipMode;

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 MTLDepthClipModeClip.

See Also

Setting Depth and Stencil Behavior

- setDepthStencilState:

Sets the depth and stencil test state.

Required.

- setDepthBias:slopeScale:clamp:

Adjusts the depth values from fragment functions by a scaling factor and a scaling bias, clamping the bias to a maximum amount.

Required.

MTLDepthClipMode

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

- setStencilFrontReferenceValue:backReferenceValue:

Sets the stencil reference values for front and back stencil comparison tests.

Required.

- setStencilReferenceValue:

Sets a stencil reference value for both front and back stencil comparison tests.

Required.