-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
WebGPU: Missing enumeration(s) in WGPUBlendFactor compared to Dawn #21552
Comments
Dual source blending hasn't landed in the WebGPU spec yet: gpuweb/gpuweb#4283 |
@kainino0x Dual source blending is going to ship soon: https://groups.google.com/a/chromium.org/g/blink-dev/c/C3VH1EMrs1Y
|
Basically the WebGPU bindings in Emscripten are a snapshot / in "maintenance mode" for the moment. The header currently in here was generated out of an older revision of Dawn, but even at that time there were differences between Dawn and Emscripten because Dawn has experimental features not available on the Web (including dual source blending at that time, before it was standardized). Right now we are working on bringing the Emscripten bindings up to speed in a fork maintained inside Dawn instead of trying to do everything across two projects at once. So we strongly prefer to spend time on that fork so we can get it completed and merged back into Emscripten sooner rather than later. @birsoyo do you need to use dual source blending for your application? (Or did you just encounter the difference in some other way?) If you wish to use Dawn's fork instead of Emscripten's snapshot you can do that, but note that it is going to be receiving many small breaking changes over the next few months. Or if you want to contribute a small patch to add just this feature to Emscripten, please open a PR and @ me for review! |
Correct, we (hopefully) shouldn't need to do anything, because emdawnwebgpu got rid of all the manually maintained tables in favor of autogeneration. |
@kainino0x Thank you for the detailed explanation! May I suggest updating https://github.com/emscripten-core/emscripten/blob/main/system/include/webgpu/README.md so that developers interested in latest changes know what to do and expect? |
The link was correct but those generated files aren't getting indexed by code search anymore. IIRC might be because we moved some of that codegen stuff into the CMake build instead (which doesn't run for chromium code search). @lokokung would remember. |
I am using emscripten 3.1.55 for web and Dawn@ad853f80 for using webgpu natively on windows.
As far as I can tell Dawn@ad853f80 should match emscripten 3.1.55 version of the webgpu headers.
When compiling with emscripten, the code fails with
It looks like the following blend factor enumerations are missing.
Are these missing enumerations intentional for not being supported on web?
Is there a place I can take a look how emscripten generates webgpu headers (from Dawn) so that I can match emscripten headers better with my native webgpu code?
The text was updated successfully, but these errors were encountered: