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:
parent
564248c09b
commit
b2aca7fdde
8 changed files with 2251 additions and 0 deletions
5
webgpu/src/dawn/c.zig
Normal file
5
webgpu/src/dawn/c.zig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pub const c = @cImport({
|
||||
@cInclude("dawn/webgpu.h");
|
||||
@cInclude("dawn/dawn_proc.h");
|
||||
@cInclude("dawn_native_c.h");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue