truce-gpu
GPU rendering backend for truce plugins.
Overview
Wraps the built-in widget toolkit from truce-gui with hardware-accelerated
rendering via wgpu (Metal on macOS, DX12 on Windows, Vulkan on Linux). Uses
lyon for path tessellation and fontdue for glyph atlas generation. Platform
windowing is provided by baseview. Widgets render identically to the CPU path
but with significantly better performance on complex UIs.
User plugins take a direct dep on this crate
(truce-gpu = { workspace = true }) when they want a GPU-rendered
editor. Every in-tree example plugin uses this path.
Key types
GpuEditor-- GPU-acceleratedEditorimplementationWgpuBackend-- implementstruce_gui::RenderBackendusing wgpu
Usage
[]
= { = "https://github.com/truce-audio/truce", = "vX.Y.Z", = ["clap"] }
= { = "https://github.com/truce-audio/truce", = "vX.Y.Z" }
(Replace vX.Y.Z with the latest release tag from
the releases page,
or run cargo truce new and let the scaffolder pin for you.)
Part of truce.