+9
Daily
18,546
stars
1,663
forks
110
watchers
6,398
prs
4,060
issues
64
releases
README
wgpu 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][webgpu], but is a fully native Rust library. It serves as the core of the WebGPU integration in Firefox, Servo, and Deno. Getting Started See our examples online at . You can see the Rust sources at examples and run them directly with cargo run --bin wgpu-examples . Learning wgpu If you are new to wgpu and graphics programming, we recommend starting with [Learn Wgpu]. Additionally, [WebGPU Fundamentals] is a tutorial for WebGPU which is very similar to our API, minus differences between Rust and Javascript. [Learn Wgpu]: https://sotrh.github.io/learn-wgpu/ [WebGPU Fundamentals]: https://webgpufundamentals.org/ Documentation Guides We ship a set of documentation modules with information on useful architecture patterns, debugging tips, and more getting started information. Need Help? Want to Contribute? The wgpu community uses Matrix and Discord to discuss. - - discussion of wgpu's development. - - discussion of using the library and the surrounding ecosystem. -  - Dedicated support channel on the Rust Gamedev Discord. Other Languages To use wgpu in C or dozens of other languages, look at wgpu-native. These are C bindings to wgpu and has an up-to-date list of libraries bringing support to other languages. [Learn WebGPU (for C++)] is a good resource for learning how to use wgpu-native from C++. [Learn WebGPU (for C++)]: https://eliemichel.github.io/LearnWebGPU/ [webgpu]: https://gpuweb.github.io/gpuweb/ Quick Links | Docs | Examples | Changelog | | :-------------------: | :-----------------------: | :---------------------: | | [v30][rel-docs] | [v30][rel-examples] | [v30][rel-change] | | [trunk][trunk-docs] | [trunk][trunk-examples] | [trunk][trunk-change] | Contributors are welcome! See [CONTRIBUTING.md][contrib] for more information. [rel-docs]: https://docs.rs/wgpu/ [rel-examples]: https://github.com/gfx-rs/wgpu/tree/v30/examplesreadme [rel-change]: https://github.com/gfx-rs/wgpu/releases [trunk-docs]: https://wgpu.rs/doc/wgpu/ [trunk-examples]: https://github.com/gfx-rs/wgpu/tree/trunk/examplesreadme [trunk-change]: https://github.com/gfx-rs/wgpu/blob/trunk/CHANGELOG.mdunreleased [contrib]: CONTRIBUTING.md Supported Platforms | API | Windows | Linux/Android | macOS/iOS | Web (wasm) | | ------ | ------------------- | --------------- | --------- | ----------- | | Vulkan | ✅ | ✅ | 🌋 | | | Metal | | | ✅ | | | DX12 | ✅ | | | | | OpenGL | 🆗 (GL 3.3+), or 📐 | 🆗 (GL ES 3.0+) | 📐 | 🆗 (WebGL2) | | WebGPU |
Top issues
#3637Bindless Tracking Issue40 comments · 2023-04-02#5158WGSL: Support the `unrestricted_pointer_parameters` language extension33 comments · 2024-01-29#6338Very High CPU Usage with wgpu >= 0.20.032 comments · 2024-09-28#6279Generic "parent device lost" error/crash after #609231 comments · 2024-09-15#2869Extended Presentation API Investigation28 comments · 2022-07-10#5368AMD Driver 23.10.X and Newer Alpha mode not applied26 comments · 2024-03-09#5756Debug Performance Regressions on 0.20 Vulkan due to SyncVal23 comments · 2024-05-30#3508Alignment guarantees for mapped buffers23 comments · 2023-02-20
Discussions
#10893PeerBrush: partial canvas uploads in an egui/wgpu painting app0 comments · 2026-11-09#10822Proposed fix for the Vulkan no-op `discard_texture`0 comments · 2026-11-03#10773WAMR3D: An Independent Rust/WebAssembly 3D Engine with Its Own WebGPU Renderer0 comments · 2026-10-28#10578What will happen to `deno_webgpu`?1 comments · 2026-10-10#10514PR to minimize JS conversion thrashing for GPU info1 comments · 2026-10-02#10510Limit max_binding_array_elements_per_shader_stage gets reset to 0, but why?9 comments · 2026-09-30#10433atomic-vec2u-min-max support in wgpu/WebGPU1 comments · 2026-09-22#10421`naga-wasm`: naga's shader translator as an npm package (WGSL, GLSL, SPIR-V, HLSL, MSL)1 comments · 2026-09-21
Latest release
v30.0.2 v30.0.2 2026-11-12Bug Fixes General - Explicitly implement Send and Sync in wgpu-core to reduce the risk of recursion_limit overflow. By @nazar-pc in 9953. - Fix a texture id leak when surface acquire returns no texture. By @jnb in 10184. - Fix a use after free of a mapped buffer when its device is lost or destroyed. By @uael in 10593. naga - Fix a compilation error when the glsl-in feature is enabled without spv-in or wgsl-in. By @andyleiserson in 10297. Metal - Fix a crash/hang when configuring a surface with the Bt2100Pq, Bt2100Hlg, or ExtendedDisplayP3 color space: the dynamically resolved CoreGrap