Skip to main content

Crate cranpose_render_wgpu

Crate cranpose_render_wgpu 

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

CapturedFrame
CPU-readable RGBA frame captured from the renderer output.
HitRegion
PresentTimings
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.
RenderStatsSnapshot
Scene
WgpuRenderer
WGPU-based renderer for GPU-accelerated 2D rendering.
WgpuTextSystem

Enums§

ClickAction
DisplayVisibleRegion
The region of the surface the display physically shows. The renderer may refuse to shade anything outside it.
PublishOutcome
What WgpuRenderer::publish_frame did.
WgpuRendererError

Functions§

display_surface_usages
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.