Instance Method

setStencilReferenceValue:

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

Required.

Declaration

- (void)setStencilReferenceValue:(uint32_t)referenceValue;

Parameters

ref

The stencil reference value.

Discussion

A stencil test uses the stencil reference value, as described for MTLStencilDescriptor. The default value is 0.

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.

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.