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:
parent
340e886e78
commit
c02578721a
3 changed files with 26 additions and 13 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue