gpu: expose API and begin using in example

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-06 21:38:36 -07:00 committed by Stephen Gutekanst
parent d32be19c8b
commit 8f5e9f89e5
4 changed files with 13 additions and 9 deletions

View file

@ -27,6 +27,7 @@ pub fn build(b: *std.build.Builder) void {
example.setBuildMode(mode);
example.install();
example.linkLibC();
example.addPackagePath("gpu", "src/main.zig");
example.addPackagePath("glfw", "libs/mach-glfw/src/main.zig");
glfw.link(b, example, .{});
gpu_dawn.link(b, example, .{});