Skip to main content

Crate mouser_engine_wgpu

Crate mouser_engine_wgpu 

Source
Expand description

Mouser’s wgpu renderer as an engine library (engine name mouser, ABI v2).

The same pipeline as Mouser’s built-in renderer (crates/mouser-render/src/gpu.rs): every rect and glyph is one instanced quad, glyph coverage lives in an R8 atlas, images are textures, and blending matches the CPU canvas. The input is the C ABI frame, so glyph bitmaps come from Mouser (keyed by MouserGlyph::key) instead of a font stack. tests/ and crates/mouser-render/tests/wgpu_engine_parity.rs check it pixel by pixel against the built-in renderer.

Structs§

Renderer
The renderer, on a window surface or an offscreen texture.

Functions§

mouser_engine_v2
The v2 entry point (this engine needs v2: translucent colours).