gpu: add gpu-hello-triangle (dawn) example

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-06 15:25:35 -07:00 committed by Stephen Gutekanst
parent 29b83b3118
commit 718a66497c
6 changed files with 490 additions and 2 deletions

5
gpu/examples/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_mach.h");
});