juj / wasm_webgpu

System headers for interfacing WebGPU from C programs compiled via Emscripten to WebAssembly
BSD 3-Clause "New" or "Revised" License
312 stars 26 forks source link

Dawn Support / Instructions? #29

Open alienself opened 1 year ago

alienself commented 1 year ago

Hi!

Any way to get more instructions about directly targeting Dawn? I have been trying to compile Dawn using cmake with little success. Do you have a sample project around that would showcase wasm_webgpu + Dawn?

juj commented 1 year ago

Heya, sorry for the delay. Currently the closest I got to working with Dawn is available at branch https://github.com/juj/wasm_webgpu/compare/main...getting_started_with_dawn , but haven't been able to squeeze more time in to look into completing it. Maybe that is of some help, if you haven't seen it yet?

In that branch, the library link directives at https://github.com/juj/wasm_webgpu/compare/main...getting_started_with_dawn#diff-7d5e7fff524477259e472bf6c42b0a26419b75cc359bbb689712ec10641e32b9R107-R117 are not quite accurate to make it work.

Which host OS are you targeting Dawn from?