Expand description
serge-native-cpu — draws a ScenePrimitive list into a pixel buffer
with vello_cpu (pinned, docs/02-architecture.md §3). It is the
required fallback when no GPU device can be created, and what headless
tests and CI snapshot (docs/03-adapters-and-pipeline.md §1.2).
Structs§
- CpuRenderer
- A reusable CPU renderer.
- Frame
- A rendered frame: premultiplied RGBA8, row-major.
- Mask
- A coverage mask in physical pixels:
rgbaiswidth×heightpremultiplied pixels, row-major, with its top-left corner at (x,y) in the frame. Drawn in white, so outline coverage is(a, a, a, a); color glyphs (emoji) keep their colors. - Mask
Rasterizer - Rasterizes single paths and glyphs into coverage masks with the same
rasterizer, strokes and transforms as
CpuRenderer, shifted by whole pixels. A renderer that composites the masks at their positions (the GPU path’s atlases) therefore draws what the CPU path draws.