truce-gpu 0.49.2

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

mod backend;
pub mod platform;

pub use backend::WgpuBackend;