smudge-gpu 0.1.0

Vello-based GPU renderer for the Smudge GUI library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Vello-based GPU renderer for the Smudge GUI library.
//!
//! The renderer replays a display list on a GPU through [vello], always
//! redrawing the whole surface. It presents the same operations as the CPU
//! renderer, so both backends can draw one display list interchangeably.
//! Offset scopes in the display list move the operations and clips they wrap.

mod encoder;
mod renderer;
mod surface;

pub use renderer::{AdapterSummary, GpuRenderer};
pub use surface::{GpuError, GpuSurface};

/// The wgpu that vello renders through, re-exported so a caller can build its
/// instances, adapters and surfaces against the same version the renderers
/// use.
pub use vello::wgpu;