setStencilReferenceValue(front:back:)
Configures the encoder with different stencil test reference values for front-facing and back-facing primitives.
Declaration
func setStencilReferenceValue(front frontReferenceValue: UInt32, back backReferenceValue: UInt32)Parameters
- frontReferenceValue:
A stencil test comparison value the render pipeline applies to front-facing primitives.
- backReferenceValue:
A stencil test comparison value the render pipeline applies to back-facing primitives.
Discussion
The render pipeline applies frontReferenceValue to front-facing primitives and backReferenceValue to back-facing primitives.