Expand description
WGPU renderer backend for GPU-accelerated 2D rendering.
This renderer uses WGPU for cross-platform GPU support across desktop (Windows/Mac/Linux), web (WebGPU), and mobile Android.
Structs§
- Captured
Frame - CPU-readable RGBA frame captured from the renderer output.
- HitRegion
- Present
Timings - Present-stage timestamps for one consumed packet, in nanoseconds on the
clock the producer injected at runtime start (
0= stage did not run or no clock was injected). Carried back in [RenderReturns] so the producer’s frame telemetry keeps recording acquire/render/present phases after those stages move to the present thread. Plain integers so the packet types stay clock-library-free on every target. - Render
Stats Snapshot - Scene
- Wgpu
Renderer - WGPU-based renderer for GPU-accelerated 2D rendering.
- Wgpu
Text System
Enums§
- Click
Action - Display
Visible Region - The region of the surface the display physically shows. The renderer may refuse to shade anything outside it.
- Publish
Outcome - What
WgpuRenderer::publish_framedid. - Wgpu
Renderer Error
Functions§
- frames_
presented - headless_
text_ measurer - Create an accurate WGPU text measurer for headless tests without launching a window.
- headless_
text_ measurer_ with_ fonts - Create an accurate WGPU text measurer for headless tests with explicit fonts.