gpu: Update example to latest zig/glfw

Update the mach/gpu only example to work with the latest zig and
recent glfw error handling changes.
This commit is contained in:
Austin Rude 2023-01-12 15:21:25 -07:00 committed by Stephen Gutekanst
parent 340e886e78
commit c02578721a
3 changed files with 26 additions and 13 deletions

View file

@ -28,8 +28,8 @@ pub fn build(b: *std.build.Builder) !void {
const example = b.addExecutable("gpu-hello-triangle", "examples/main.zig");
example.setBuildMode(mode);
example.setTarget(target);
example.addPackage(gpu.pkg(b));
example.addPackage(glfw.pkg(b));
example.addPackage(gpu.pkg);
example.addPackage(glfw.pkg);
try gpu.link(b, example, .{ .gpu_dawn_options = gpu_dawn_options });
example.install();