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.
This commit is contained in:
Austin Rude 2023-01-14 23:42:03 -07:00 committed by Stephen Gutekanst
parent 77341e2905
commit f54d584991

View file

@ -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(),