Expand description
Path clip pipeline — rasterize a closed-polygon mask for a
foreground RT (M-MASK / AUT-35 freehand path mask).
Uses a uniform-buffered point list (up to 32 vertices for V1) and a fragment-shader winding-number test (Jordan curve theorem). No tessellation required, no SDF — just the classic crossings-test point-in-polygon at every pixel. Works for any simple polygon (convex or concave); doesn’t handle self-intersecting paths cleanly, but those aren’t on the freehand-mask UX path.
Structs§
Constants§
- MAX_
PATH_ 🔒POINTS - Maximum points in a path mask. Mirrors
MAX_POINTSinpath_clip.wgsl.