Skip to main content

Crate densa_render

Crate densa_render 

Source
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§

AtlasError
Why the GPU atlas could not follow the glyph cache.