gpu: implement Dawn getProcAddress

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 14:50:18 -07:00 committed by Stephen Gutekanst
parent e702ee4911
commit 48bc09ca93
2 changed files with 6 additions and 5 deletions

View file

@ -21,9 +21,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn getProcAddress(device: *gpu.Device, proc_name: [*:0]const u8) ?gpu.Proc {
_ = device;
_ = proc_name;
unreachable;
return procs.getProcAddress.?(
@ptrCast(c.WGPUDevice, device),
proc_name,
);
}
pub inline fn adapterCreateDevice(adapter: *gpu.Adapter, descriptor: ?*const gpu.Device.Descriptor) ?*gpu.Device {