truce_gpu/lib.rs
1//! GPU rendering primitives for truce plugins.
2//!
3//! Provides [`WgpuBackend`], the wgpu+lyon+fontdue implementation of
4//! [`truce_gui_types::RenderBackend`]. Used by the user-facing
5//! editor wrappers (`truce_gui::GpuEditor`, `truce_egui::EguiEditor`,
6//! `truce_iced::IcedEditor`, `truce_slint::SlintEditor`) and as the
7//! GPU pipeline backing `truce_gui::default_editor`.
8//!
9//! Plugin authors don't depend on this crate directly - they call
10//! `truce_gui::default_editor(...)` from their `PluginLogic::editor`
11//! impl, which pulls `WgpuBackend` transitively.
12
13mod backend;
14pub mod platform;
15
16pub use backend::WgpuBackend;