gpu: implement Dawn getProcAddress
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e702ee4911
commit
48bc09ca93
2 changed files with 6 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue