Skip to main content

Module path_clip

Module path_clip 

Source
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§

PathClipPipeline 🔒
PathClipUniforms 🔒

Constants§

MAX_PATH_POINTS 🔒
Maximum points in a path mask. Mirrors MAX_POINTS in path_clip.wgsl.