pub const STENCIL_DRAW_CMD_THRESHOLD: usize = 4;Expand description
Above this draw-command count, prefer stencil over per-fragment shader masking.
The comparison is strict: four commands still use the shader for a non-root rounded clip, while five select stencil.
ยงExamples
use ailloli_ui_render_wgpu::clip::STENCIL_DRAW_CMD_THRESHOLD;
assert_eq!(STENCIL_DRAW_CMD_THRESHOLD, 4);