densa_render/lib.rs
1//! wgpu renderer for densa.
2//!
3//! [`GpuRenderer`] draws a frame's `densa_draw::Instance`s, as built by a `Canvas` from any
4//! painter (grids, paragraphs, your own), with one instanced draw call: each quad is a solid
5//! rectangle or a glyph sampled from the atlas. It keeps the atlas texture in step with the
6//! glyph cache's updates, growing it on the GPU as the cache grows.
7
8mod atlas;
9mod gpu;
10
11pub use atlas::AtlasError;
12pub use densa_core::Color;
13pub use gpu::GpuRenderer;