Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official WebGPU Support #8315

Closed
simbleau opened this issue Apr 6, 2023 · 2 comments · Fixed by #8336
Closed

Official WebGPU Support #8315

simbleau opened this issue Apr 6, 2023 · 2 comments · Fixed by #8336
Labels
C-Enhancement A new feature O-Web Specific to web (WASM) builds

Comments

@simbleau
Copy link
Contributor

simbleau commented Apr 6, 2023

What problem does this solve or what need does it fill?

WebGPU is now shipping on major platforms, like stable Chrome, as of April 6th 2023.
https://developer.chrome.com/blog/webgpu-release/

It's important that Bevy begins to officially support WebGPU, since it is now stable on the browser with > 60% of the browser market. Firefox and Safari will soon follow suit (Firefox sooner).

Currently, Bevy only supports WebGL as a backend, and that's a problem. Major performance benefits can be gained with WebGPU and there's no reason we can't change the backend-bit and fallback to WebGL (the only current backend for Bevy).

What solution would you like?

Attempt to use WebGPU on WASM, and fallback to WebGL (the only backend-bit Bevy uses currently).

Additional context

This seems uncontroversial for the team, as I've seen previous conversations by members such as @mockersf stating that WebGPU support should be tackled when the browsers actually roll out WebGPU stable. Now is that time.

@simbleau simbleau added C-Enhancement A new feature S-Needs-Triage This issue needs to be labelled labels Apr 6, 2023
@mockersf mockersf added O-Web Specific to web (WASM) builds and removed S-Needs-Triage This issue needs to be labelled labels Apr 6, 2023
@mockersf
Copy link
Member

mockersf commented Apr 6, 2023

Definitely something we want! I opened a first proposition a few months ago: #5027

I'll try to finish another proposition I have for Bevy 0.10... soon.

To note, it's unlikely Bevy will support a builtin fallback to WebGL2, but it's possible to build both versions and decide in JS which to load.

@daxpedda
Copy link
Contributor

daxpedda commented Apr 8, 2023

Related: gfx-rs/wgpu#2804.

@cart cart closed this as completed in 71842c5 May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement A new feature O-Web Specific to web (WASM) builds
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants