Enumeration

MTLDepthClipMode

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

Declaration

typedef enum MTLDepthClipMode : NSUInteger {
    ...
} MTLDepthClipMode;

Topics

Constants

MTLDepthClipModeClip

Clip fragments outside the near or far planes.

MTLDepthClipModeClamp

Clamp fragments outside the near or far planes.

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.

- setDepthClipMode:

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

Required.

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