OptionalclearOptionalenabledWhether stencil testing is enabled.
OptionalfuncStencil function parameters.
The comparison function.
The mask to apply to the stencil test.
The reference value for the stencil test.
OptionalopStencil operation parameters.
The operation to perform if the stencil test fails.
The operation to perform if the depth test fails.
The operation to perform if the stencil test passes and the depth test passes or is disabled.
The value to clear the stencil buffer to.