Skip to main content

Crate smudge_gpu

Crate smudge_gpu 

Source
Expand description

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.

Re-exports§

pub use vello::wgpu;

Structs§

AdapterSummary
The adapter a GPU renderer draws on, as plain strings a report can carry.
GpuRenderer
A renderer that draws every frame on a GPU through vello.
GpuSurface
A GPU presenter that draws every frame onto a wgpu surface.

Enums§

GpuError
Something that stopped a GpuSurface from being created or from drawing a frame.

Functions§

device_limits
Returns the device limits a renderer’s device should be created with.
instance
Creates the wgpu instance a renderer’s adapter should come from.