Rust game engine Bevy already supports WebGPU rendering

The Bevy main branch of the Rust game engine has added support for WebGPU . Therefore, after compiling games based on Bevy into wasm, WebGPU can be used for rendering on the Web, thereby achieving efficient large-scale 3D effects.

WebGPU is a specification published by the W3C GPU for the Web community group, with the goal of allowing webpage code to access GPU functionality in a high-performance, secure and reliable manner. WebGPU is a set of graphics API standards designed for browsers. In order to bridge the differences between graphics APIs of various platforms, it integrates and encapsulates DirectX12, Vulkan, and Metal. With the help of WebGPU, the powerful capabilities of modern GPU hardware can be fully released, allowing developers to use TS/JS to develop scenes comparable to native expressiveness on the Web side, to achieve larger and more complex 3D scene performance, and even use modern GPUs for general computing The ability to perform previously unimaginable complex computing tasks.

Here is an example of Bevy using WebGPU for 3D rendering:

https://bevyengine.org/examples-webgpu

According to the Bevy team, Bevy is built on the wgpu library, which is a modern low-level GPU API and is compatible with almost all popular APIs: Vulkan, Direct3D 12, Metal, OpenGL, WebGL2 and WebGPU, after choosing the best for a given platform end API. While wgpu is a "native" rendering API, it follows WebGPU terminology and API design. Unlike WebGPU, it can provide direct access to native API.

further reading

Guess you like

Origin www.oschina.net/news/241742/bevy-webgpu