wg_engine: improve stencil fill performance
Non-convex fills required a separate stencil-and-cover sequence for each shape, even when consecutive shapes did not overlap. Repeating these submissions reduced throughput in shape-heavy scenes. Improve WebGPU performance by batching compatible stencil geometry into one draw. Merge adjacent solid covers, preserve gradient cover order, and retain boundaries for overlaps and render state changes.
J
Jay Shen committed
08ae35ace841917aae0292c5ef5717fbff4e2454
Parent: de7ee58
Committed by Hermet Park <hermetpark@gmail.com>
on 8/12/2026, 6:03:35 AM