Hey all, Emscripten supports targeting WebGPU out of the box via the -sUSE_WEBGPU linker flag and a set of WebGPU headers that are provided by Google autogenerated from the Dawn project.
I have been working on our own set of handwritten interop headers for WebGPU. We use this interop layer at Unity for prototyping our WebGPU experiments. The reason for writing another system header is that we had slightly different goals than what the current Emscripten WebGPU bindings have. One of the goals of the Dawn-provided headers is to enable one to also target other native platforms (Windows/Linux/etc.) with WebGPU by linking against the Dawn API. In our case, we only wish to target the web, so wanted an interop layer tuned specifically for Wasm<->JS interop, hence handwriting a bindings layer specifically for that task. This resulted in the imaginatively named wasm_webgpu repository, which you can find at https://github.com/juj/wasm_webgpu . This enables a low-level C style API for accessing WebGPU in a browser. The project has been at a complete enough stage for quite a while now, and is up to date with the latest WebGPU specification draft at the time of writing, so I wanted to advertise its existence here, in case someone else might find it useful to play around with. Bug reports are welcome! Cheers, Jukka -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CA%2B6sJ-2ZJUS57gT0Jysvah8zXE8SsuGEbeWxs6H%2B_4RhK0JZLQ%40mail.gmail.com.
