Cross-platform · GPU-accelerated

GPU UI for every platform.

A cross-platform GPU-accelerated UI framework for Rust, built on wgpu and winit. One codebase compiles to Windows, macOS, Linux, and WebAssembly.

Quick Start

Add gpui-ce to your Cargo.toml and start building GPU-accelerated UIs in minutes.

Cargo.toml
[dependencies] gpui-ce = { git = "https://github.com/Far-Beyond-Pulsar/WGPUI" }
src/main.rs — Hello World
use gpui::*; struct HelloApp; impl Render for HelloApp { fn render(&mut self, _window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement { cx.notify(); div() .flex() .size_full() .justify_center() .items_center() .bg(rgb(0x0c0c0c)) .child( div() .px_6() .py_3() .rounded_xl() .bg(rgb(0x0ea5e9)) .child("Hello, WGPUI!") ) } } fn main() { Application::new().run(|cx: &mut App| { cx.open_window(WindowOptions::default(), |_, cx| { cx.new(|_| HelloApp) }).unwrap(); }); }
Build & Run
cargo run # Compiles on Windows, macOS, Linux, and WASM

Why WGPUI?

Replace platform-specific UI code with a single, unified GPU-accelerated framework.

One Backend, Every Platform

Unified wgpu + winit backend replaces Metal/Vulkan/D3D12/Cocoa/Win32/Wayland — one code path compiles to Windows, macOS, Linux, and WASM.

GPU-Accelerated Rendering

Full GPU-driven UI pipeline with glyphon text atlas, resvg SVG rendering, and custom wgpu shaders.

Rich Component Library

40+ reusable primitives — buttons, menus, tabs, dropdowns, modals, sliders, trees, virtual lists, and more.

JSON Theme System

Runtime-switchable themes via JSON. 20+ included themes with full color, typography, and spacing control.

Tree-Sitter Code Editor

Embeddable code editor with tree-sitter syntax highlighting, ropey text buffers, multi-cursor editing.

Profiler & Inspector

Built-in GPU profiler and UI inspector with custom wgpu compute shaders for performance visualization.

WGPUI-Component

A comprehensive suite of reusable UI primitives built on WGPUI.

ButtonsMenusTabsDropdownsAccordionsModalsPopoversSlidersSwitchesProgress BarsVirtual ListsCode EditorChartsDrag & DropResizable PanelsTree ViewsTooltipsBreadcrumbs

Ready to build?

WGPUI is open source. Clone the repo, add the crate, and start building GPU-accelerated UIs.

View on GitHub