Contents

setStencilReferenceValue(_:)

Configures this encoder with a reference value for stencil testing.

Declaration

func setStencilReferenceValue(_ referenceValue: UInt32)

Parameters

  • referenceValue:

    A stencil test comparison value.

Discussion

The render pipeline applies this reference value to both front-facing and back-facing primitives.

See Also

Configuring depth and stencil behavior