-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add WebGPU support #2023
Comments
This sounds exactly like Metal requirement. See Metal renderer for fix: Lines 2563 to 2564 in e7b8606
|
The WebGPU API has changed in the past few years and most likely bgfx needs a lot of updates as I don't think it's been worked on in a long time. Additionally Chrome and Firefox haven't quite finished reaching parity yet. If you're developing please use the latest Chrome Canary / Firefox Nightly. This particular issue says |
Yep, it's just experimental. We'll look into it once browsers get WebGPU by default, without turning on "developer" features. |
I am actuallu using latest browser versions and enabled developer mode for webgpu on chrome. Are you sauing it should work? |
Apologies I pasted the wrong flag name. It's not enable-webgpu-developer-features, it's enable-unsafe-webgpu. Fixed above |
no problem and thank you for fast response, it indeed helped with my issue but generated a lot of new errors so I guess the time isn’t right just yet for webgpu |
WebGPU is ready, but bgfx needs lots of work :) |
As of 3/8/2023 not available in any browser by default: Anyhow WebGPU is experimental in bgfx. Work on it will resume once all relevant desktop browsers (Chrome, Firefox, Safari) enable it by default. Until then there won't be any work on it. WebGL is fully functional... |
Right. Chrome is aiming to release in 113 or 114 (early may or june in stable). The implementation is very well ready for development, so now is a good time if anyone out there happens to want to bring bgfx up to date to have it working around the time Chrome ships. But of course it shouldn't have urgent priority for bgfx developers, since WebGL is working. Probably more of an idea for an external contributor if any want to pick it up :) |
@kainino0x As development of WebGPU took a while, we won't rush either just because one browser supports it. Once it's in Safari, and Firefox, without any developer flags we'll consider it again. One of things we need to figure out before port is tooling how to translate shaders from bgfx shaderc into WGSL (Tint or Naga). |
I'm implementing the WebGPU backend over here: https://github.com/hugoam/bgfx
I thought I'd open this issue to keep track of where I'm at, in a similar way you did for Vulkan
Here are the examples I've got working so far (so far the web builds at each link work in Chrome canary on Windows or OSX):
The text was updated successfully, but these errors were encountered: