Re:Bevy 0.10: data oriented game engine built in Rust
by astlouis44 on Monday March 06, 2023 @01:54PM
(#35045808)
WebGPU support?
[ Parent
| on HN ]
Re:Bevy 0.10: data oriented game engine built in Rust
by AndrewPGameDev on Monday March 06, 2023 @02:17PM
(#35046177)
It doesn't work currently. The only problem is that plugin initialization must be asynchronous, so you have to pass control back to the browser to allow it to initialize the WebGPU api properly[1]. I hacked async plugin initialization into a fork for Bevy 0.8[2], but I never got it to 100% work because Chrome had already moved onto a newer WGSL syntax. In theory if you do the same changes for 0.10 as I did for 0.8 it should allow WebGPU to work (and I plan on doing this in the next couple days).
[1]https://github.com/bevyengine/bevy/discussions/3239 [2]https://github.com/Andrewp2/andrew-bevy/tree/webgpu-2 warning extremely bad code