Luna::RHI::StencilOp
enum StencilOp : u8
{
keep
zero
replace
increment_saturated
decrement_saturated
invert
increment
decrement
}
Specifies the stencil operation to perform when stencil test passed or failed.
Options
-
Keeps the original stencil data.
-
Clears the stencil data to 0.
-
Replaces the stencil data with the data set by ICommandBuffer::set_stencil_ref.
-
Increases the stencil data by one, and clamps the result so that it will not overflow and goes to 0.
-
Decreases the stencil data by one, and clamps the result so that it will not underflow and goes to the maximum representable value.
-
Inverts the stencil data. This will invert every bit of the stencil data.
-
Increases the stencil data by one. If the data overflows, it will be reset to 0.
-
Decreases the stencil data by one. If the data underflows, it will be reset to the maximum representable value.