Skip to main content

Module vert_buffer

Module vert_buffer 

Source
Expand description

Quantized raster-space vertex buffer for output-space tile invalidation.

Each primitive and clip gets its transformed, raster-space corners stored here as quantized i32 values. The tile descriptor stores a VertRange referencing into this buffer instead of a picture-space prim_clip_box or spatial node dependency.

Structs§

CornersCache
Persistent per-tile-cache scratch and transform cache for computing raster-space corners.
VertRange
A reference into a per-tile vert_data buffer: offset (in i32 elements) and count. count is 4 for an axis-aligned rect (2 corners × 2 coords), 8 for a non-axis-aligned quad (4 corners × 2 coords), or 16 for a transform fingerprint emitted when a perspective-projected rect crosses the camera plane (4 corners × homogeneous (x, y, z, w) coords).

Constants§

VERT_QUANTIZE_SCALE
Sub-pixel quantization scale: quarter-pixel precision.

Functions§

quantize