Documentation
¶
Overview ¶
Command compute_clip is a visual demo exercising the Vello compute pipeline with clip layers.
It renders a scene with BeginClip/EndClip through the CPU reference implementation (tilecompute.RasterizeSceneDefPTCL) and optionally through the GPU compute pipeline, producing a triptych comparison image.
Scene layout:
- White background
- Green rectangle (full canvas)
- BeginClip: rounded-rectangle-approximated clip (centered, ~200x150)
- 8 colored circles inside clip (clipped to the rounded rect)
- Blue rectangle inside clip (partially clipped)
- EndClip
- Yellow star outside clip (fully visible, NOT clipped)
Output:
tmp/clip_cpu.png — CPU reference tmp/clip_gpu.png — GPU compute output (if available) tmp/clip_comparison.png — Side-by-side triptych with diff
Click to show internal directories.
Click to hide internal directories.