Expand description
wgpu renderer for densa.
GpuRenderer draws a frame’s densa_draw::Instances, as built by a Canvas from any
painter (grids, paragraphs, your own), with one instanced draw call: each quad is a solid
rectangle or a glyph sampled from the atlas. It keeps the atlas texture in step with the
glyph cache’s updates, growing it on the GPU as the cache grows.
Structs§
- Color
- A color in linear RGB with straight (not premultiplied) alpha: the space densa blends in.
- GpuRenderer
- GPU resources for drawing a frame of
Instances in one draw call.
Enums§
- Atlas
Error - Why the GPU atlas could not follow the glyph cache.