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:
parent
77341e2905
commit
f54d584991
1 changed files with 1 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue