webgpu: begin building Dawn with Zig

* MacOS support functional
* C shims for dawn_native functionality, e.g. required utilities for binding to a GLFW window.
* Fully building with Zig, but depends on ziglang/zig#10096 for Obj-C++ support.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-11-05 03:32:34 -07:00 committed by Stephen Gutekanst
parent 564248c09b
commit b2aca7fdde
8 changed files with 2251 additions and 0 deletions

5
webgpu/src/dawn/c.zig Normal file
View file

@ -0,0 +1,5 @@
pub const c = @cImport({
@cInclude("dawn/webgpu.h");
@cInclude("dawn/dawn_proc.h");
@cInclude("dawn_native_c.h");
});