gpu: add gpu-hello-triangle (dawn) example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
29b83b3118
commit
718a66497c
6 changed files with 490 additions and 2 deletions
5
gpu/examples/c.zig
Normal file
5
gpu/examples/c.zig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pub const c = @cImport({
|
||||
@cInclude("dawn/webgpu.h");
|
||||
@cInclude("dawn/dawn_proc.h");
|
||||
@cInclude("dawn_native_mach.h");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue