StencilOp

sg_stencil_op

The operation performed on a currently stored stencil-value when a comparison test passes or fails. This is used when creating a pipeline object in the following sg_pipeline_desc struct items:

sg_pipeline_desc .stencil .front .fail_op .depth_fail_op .pass_op .back .fail_op .depth_fail_op .pass_op

The default value is SG_STENCILOP_KEEP

Values

ValueMeaning
Default
Keep
Zero
Replace
Incr_clamp
Decr_clamp
Invert
Incr_wrap
Decr_wrap
Num

Meta