compute_clip

command
v0.43.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL