Hacker News new | ask | show | jobs
by animatethrow 953 days ago
Are Windows prebuilt Dawn WebGPU libs available anywhere so I can try to draw a triangle using C/C++? Many Google projects are extremely time consuming to build on a Windows machine and need like 30+ GB of space for all tools and dependencies. Windows is still over 95% of the paid non-console gaming market so those who want to pay bills making games can't ignore it. BGFX is easy to clone and build from GitHub; examples are up and running in only a few steps. Any way to do the same with Dawn WebGPU?
2 comments

The Mach engine project maintains prebuilt Dawn libraries and also a simplified build-from-source workflow using the Zig build system, see:

https://machengine.org/pkg/mach-gpu-dawn/

It's also possible to use wgpu-native in C/C++ projects as prebuilt library, see:

https://github.com/gfx-rs/wgpu-native

https://eliemichel.github.io/LearnWebGPU/getting-started/hel... has a good getting started guide on it but, ironically, wgpu with wgpu-native might be easier to get started with, even with C/C++. https://github.com/gfx-rs/wgpu-native/releases/latest has ZIPs with Windows DLLs and headers.