Expand description
Winit + WGPU application runtime for dear-imgui-rs.
The runtime keeps the main window, Dear ImGui context, and user Application stable while
replacing only GPU-owned state after a device-loss signal.
use dear_app::AppConfig;
dear_app::run_ui(AppConfig::default(), |ui| {
ui.window("Hello").build(|| ui.text("Hello, world!"));
})?;Re-exports§
pub use dear_imgui_rs as imgui;pub use wgpu;
Structs§
- AddOns
- AddOns
Config - Optional extension contexts created with the application UI state.
- AppConfig
- Complete configuration shared by
crate::run_ui,crate::run_frame, andcrate::run. - Docking
Api - Event
Context - Event-time capabilities that cannot open or render a Dear ImGui frame.
- External
Texture Handle - Opaque external texture identity bound to one GPU generation.
- Frame
Context - GpuApi
- GpuContext
- GpuGeneration
- Monotonically increasing identity of the active GPU resource set.
- Init
Context - Initialized
Context - Post-attachment initialization capabilities without Context or frame ownership.
- Prepare
Frame Context - Pre-frame access to Context-owned resources without frame lifecycle authority.
- Shutdown
Context - Terminal resource capabilities without Context or frame ownership.
- Wgpu
Config - Adapter and device requirements used for every GPU generation.
Enums§
- Application
Stage - Lifecycle hook that produced an
Applicationerror. - Docking
Config - Optional docking and built-in dockspace behavior.
- External
Texture Error - Redraw
Mode - RunError
- Theme
- Wgpu
Preset - Curated WGPU adapter and limits profiles.
Traits§
- Application
- Persistent user application. This value survives every GPU recreation.