Skip to content

Official WebGPU Support #8315

@simbleau

Description

@simbleau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-FeatureA new feature, making something new possibleO-WebSpecific to web (WASM) builds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions