24 releases
| 0.0.57 | Mar 22, 2026 |
|---|---|
| 0.0.56 | Mar 7, 2026 |
| 0.0.47 | Feb 28, 2026 |
| 0.0.37 | Jan 31, 2026 |
#2608 in GUI
Used in cranpose
3.5MB
79K
SLoC
WGPU renderer backend for GPU-accelerated 2D rendering.
This renderer uses WGPU for cross-platform GPU support across desktop (Windows/Mac/Linux), web (WebGPU), and mobile (Android/iOS).
Cranpose Render WGPU
A GPU-accelerated rendering backend for Cranpose, powered by wgpu.
When to Use
This is the default renderer for Cranpose. It provides high-performance rendering on Linux (Vulkan/GL), macOS (Metal), Windows (DX12/Vulkan), and Web (WebGL2/WebGPU). It supports advanced features like anti-aliased shapes and hardware-accelerated text rendering.
Key Concepts
- WGPU: The underlying graphics abstraction layer.
- Glyphon: Used for efficient, high-quality text layout and rasterization.
- Batching: The renderer automatically batches draw calls to minimize GPU overhead.
Configuration
This renderer is enabled by default via the renderer-wgpu feature in the cranpose crate. No manual configuration is typically required.
Dependencies
~37–58MB
~1M SLoC