gpu: update interface to latest webgpu headers

This commit is contained in:
Ali Chraghi 2023-01-13 22:30:26 +03:30 committed by Stephen Gutekanst
parent e4f2f08431
commit a52c6e5f5c
11 changed files with 135 additions and 31 deletions

View file

@ -116,7 +116,7 @@ pub fn init(allocator: std.mem.Allocator, options: Options) !*Core {
}
// Print which adapter we are going to use.
var props: gpu.Adapter.Properties = undefined;
var props = std.mem.zeroes(gpu.Adapter.Properties);
response.adapter.getProperties(&props);
if (props.backend_type == .null) {
std.log.err("no backend found for {s} adapter", .{props.adapter_type.name()});