From f54d58499197b944cf26bdda199905f0e465d674 Mon Sep 17 00:00:00 2001 From: Austin Rude Date: Sat, 14 Jan 2023 23:42:03 -0700 Subject: [PATCH] gpu: fix getting adapter propeties in example Dawn now verifies the next chain is null, requiring this change. See 3c9d26a6 and the code review comments for more info. --- libs/gpu/examples/sample_utils.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gpu/examples/sample_utils.zig b/libs/gpu/examples/sample_utils.zig index 9cb4fd58..e9112d1c 100644 --- a/libs/gpu/examples/sample_utils.zig +++ b/libs/gpu/examples/sample_utils.zig @@ -109,7 +109,7 @@ pub fn setup(allocator: std.mem.Allocator) !Setup { } // Print which adapter we are using. - var props: gpu.Adapter.Properties = undefined; + var props = std.mem.zeroes(gpu.Adapter.Properties); response.?.adapter.getProperties(&props); std.debug.print("found {s} backend on {s} adapter: {s}, {s}\n", .{ props.backend_type.name(),