Skip to main content

wgpu-html

GPU-accelerated HTML/CSS renderer for Rust.

Quick Links

What is wgpu-html?

A Rust library that parses HTML and CSS, computes layout (block, flexbox, grid), shapes text, and paints everything to a GPU-backed display list via wgpu. Zero JavaScript — ever.

Architecture

HTML/CSS string
→ Parser (tokenizer + tree builder + CSS parser)
→ Style (cascade + inheritance + UA defaults)
→ Layout (block flow + flexbox + grid + inline)
→ Paint (DisplayList of quads + glyphs + images)
→ Renderer (GPU via wgpu)