Skip to main content

Module cpu

Module cpu 

Source
Expand description

The vello_cpu backend — an adapter of crate::display::Target: any area of a display list painted into a pixmap, and a tile’s straight-alpha pixels, for the server’s tiles, the PNG and a browser without WebGPU.

Structs§

Cpu
The vello_cpu backend of crate::display::paint.

Functions§

paint_area
Paints area of list — in the design’s coordinates, whole pixels at scale — with vello_cpu: one tile, band or whole drawing.
strip
A strip of the drawing at 1×, straight RGBA: TILE pixels wide at tile column col, rows tall from pixel row y — a piece of a PNG band too wide for whole tiles.
tile
A tile’s pixels, straight RGBA, TILE a side.
unpremultiply
Straight alpha from premultiplied, rounding as the PNG encoder does.