Skip to main content

Crate truce_gpu

Crate truce_gpu 

Source
Expand description

GPU rendering backend for truce plugins.

Uses wgpu (Metal/DX12 backends per the workspace’s feature pin) with lyon tessellation and a fontdue glyph atlas. Implements truce_gui::RenderBackend so widgets render identically to the CPU path.

Platform windowing is provided by baseview.

Re-exports§

pub use editor::GpuEditor;

Modules§

editor
GPU editor - wraps BuiltinEditor rendering with wgpu + baseview.
platform
Platform window bridging for baseview.

Macros§

hot_debug
Crate-wide debug-print macro for GPU init / render hot-reload paths. Compiles to nothing unless the hot-debug feature is enabled. Defined at crate root so any module under truce_gpu::* can reach it without re-importing.

Structs§

WgpuBackend
GPU-based rendering backend.