About this project
wgpu is a cross-platform, safe, pure-Rust graphics API. It runs natively on Vulkan, Metal, D3D12, and OpenGL, and on top of WebGL2 and WebGPU on wasm. The API is based on the WebGPU standard but is a fully native Rust library, serving as the core of the WebGPU integration in Firefox, Servo, and Deno.
Key features include:
- Cross-platform support across Windows, Linux/Android, macOS/iOS, and Web (wasm)
- First-class support for Vulkan, Metal, DX12, and WebGPU backends
- Downlevel/best-effort support for OpenGL and WebGL2
- Environment variable configuration for backend selection, adapter selection, and DX12 shader compiler
- Comprehensive documentation modules covering architecture patterns, debugging tips, and getting started information
- Online examples and tutorials including Learn Wgpu and WebGPU Fundamentals
wgpu tracks the WebGPU and WGSL draft specifications, using Naga to translate WGSL code into platform-specific shading languages when running natively. The project maintains clear MSRV policies with different minimum supported Rust versions for the core library versus the full workspace.
The community uses Matrix and Discord for discussion, with dedicated channels for development and user support. Contributors are welcome, and the project provides C bindings through wgpu-native for use in other languages.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.