I'm certainly interested in this process as well -- trying the same thing on Win10 (SDK 10.018362) with VS2019. Looks like Dawn could make a great desktop graphics library! While my build process also succeeded, I've noticed that the examples don't seem to work: I only get a blank (white) window without any hooked swapchain or graphics.
Otherwise, I am also facing this linking error in a test VS application. I thought manually copying over the dll(s) could help, but no. Then I remembered about the __declspec( dllimport ) flags, which are present in webgpu.h as WGPU_EXPORT. However, their internal library use seem limited so unsure if a particular preprocessor define that would really help here?
I could be mistaken, but the full list of required includes seem to be: dawn\src, dawn\src\include, dawn\out\$(Configuration)\gen\src, dawn\out\$(Configuration)\gen\src\include ?
I ran into a couple more things trying this build for the first time yesterday, which I might as well share:
- Python 2 requirement for depot tools
- set DEPOT_TOOLS_WIN_TOOLCHAIN=0 to use the locally installed toolchain
Not too sure how to trigger a clean rebuild, but I will try the static non-clang approach as well.