dear-imgui-wgpu
WGPU renderer for Dear ImGui.
Quick Start
use Context;
use ;
// device, queue, surface_format prepared ahead
let mut renderer = new?;
// Optional: unify gamma policy across backends
renderer.set_gamma_mode; // Auto | Linear | Gamma22
// per-frame
renderer.render_draw_data?;
What You Get
- ImGui v1.92 texture system integration (create/update/destroy)
- Multi-frame buffering and device-object management
- Format-aware or user-controlled gamma (see below)
sRGB / Gamma
- Default
GammaMode::Auto: picksgamma=2.2for sRGB targets and1.0for linear targets. - You can force
Linear(1.0) orGamma22(2.2). - Pair this with your swapchain format to avoid double correction.
Compatibility
| Item | Version |
|---|---|
| Crate | 0.2.x |
| dear-imgui | 0.2.x |
| wgpu | 26 |
See also: docs/COMPATIBILITY.md for the full workspace matrix.
Notes
- Targets native and Web (with
webgl/webgpufeatures mapped to wgpu features). - External dependency updates (wgpu) may require coordinated version bumps.
Features
- Default: no extra features required for native builds
webgl: forwards towgpu/webgl(WASM + WebGL)webgpu: forwards towgpu/webgpu(WASM + WebGPU)
Pick exactly one of webgl or webgpu for browser targets; for native leave both off.