Bevy's main branch now supports WebGPU rendering for the web, letting developers test it via the Bevy repo on a WebGPU-compatible browser. Full WebGPU support is slated to ship in the upcoming Bevy 0.11 release, about a month out, while the current Bevy 0.10 release still defaults to WebGL2. WebGPU is a new web graphics/compute standard, recently shipped in Chrome 113, offering more GPU features (like compute shaders) than WebGL2 by building on Vulkan, Direct3D 12, and Metal via the wgpu library that Bevy is built on. A new live WebGPU examples page is also available for testing.

5m read timeFrom bevy.org
Post cover image
Table of contents
What is WebGPU? #What is Bevy? #Bevy's WebGPU Example Page #How it Works #Compiling Bevy Apps for WebGPU #

Questions this post answers

Does Bevy 0.10 support WebGPU rendering?

No, Bevy 0.10 does not support WebGPU; it still uses WebGL2 as the default web rendering backend. WebGPU support is available on Bevy's main branch and is planned to ship built-in with the Bevy 0.11 release, expected about a month after the main-branch support landed. Until WebGPU becomes more universally supported by browsers, WebGL2 remains the default. daily.dev helps Rust game devs track when Bevy releases land the engine features they're waiting on.

How do I build a Bevy example for WebGPU instead of WebGL2?

Set up wasm-bindgen for the project, then run cargo run -p build-wasm-example -- --api webgpu load_gltf, replacing load_gltf with any other example name from Bevy's examples directory. This targets the WebGPU backend explicitly, since WebGL2 remains the default backend for Bevy web builds until WebGPU support becomes more widespread across browsers. Developers wiring up WebGPU builds can follow ecosystem updates like this on daily.dev.

Which browsers support WebGPU and how does it differ from WebGL2?

Chrome shipped WebGPU support in Chrome 113, with Firefox and Safari implementations in progress. WebGPU is a newer web graphics/compute standard inspired by Vulkan, Direct3D 12, and Metal, offering more GPU features than WebGL2 such as compute shaders, along with the WGSL shader language, and has the potential to be significantly faster. daily.dev keeps graphics developers current on browser rollouts like WebGPU support.

1 Impression