Skip to main content

smudge_gpu/
lib.rs

1//! Vello-based GPU renderer for the Smudge GUI library.
2//!
3//! The renderer replays a display list on a GPU through [vello], always
4//! redrawing the whole surface. It presents the same operations as the CPU
5//! renderer, so both backends can draw one display list interchangeably.
6//! Offset scopes in the display list move the operations and clips they wrap.
7
8mod encoder;
9mod renderer;
10mod surface;
11
12pub use renderer::{AdapterSummary, GpuRenderer};
13pub use surface::{GpuError, GpuSurface};
14
15/// The wgpu that vello renders through, re-exported so a caller can build its
16/// instances, adapters and surfaces against the same version the renderers
17/// use.
18pub use vello::wgpu;