gpu: update interface to latest webgpu headers
This commit is contained in:
parent
e4f2f08431
commit
a52c6e5f5c
11 changed files with 135 additions and 31 deletions
|
|
@ -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()});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue