Expand description
64×64 render-tile iterator (rayon-ready; serial driver only this run). 64×64 render-tile iterator.
Splits the framebuffer into a grid of TILE_SIZE × TILE_SIZE tiles,
clamped to the framebuffer boundary. Tiles are independent of each other
and can be rendered in parallel (rayon-ready); this run uses a serial
driver.
Structs§
- Dirty
Region - Tracks which tiles of the framebuffer have been modified since the last clear, enabling callers to skip re-compositing unchanged tiles.
- Tile
- A single render tile, identified by its top-left corner and its pixel
extents (which may be smaller than
DEFAULT_TILE_SIZEat boundaries). - Tile
Iter - Iterator over the tiles covering a
ClipRect, clamped to the framebuffer size.
Constants§
- DEFAULT_
TILE_ SIZE - Default tile side length in pixels.
Functions§
- collect_
tiles - Collect all tiles covering
rectinto an ownedVec<Tile>. - render_
tiles - Apply closure
fto each tile coveringrect. - tiles_
for - Return an iterator over
DEFAULT_TILE_SIZE-sized tiles coveringrect, clamped to the framebuffer dimensionsfb_w × fb_h.