gpu: implement Dawn adapterRequestDevice
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e07e441f0c
commit
1d5021fd2c
1 changed files with 6 additions and 5 deletions
|
|
@ -63,11 +63,12 @@ pub const Interface = gpu.Interface(struct {
|
|||
}
|
||||
|
||||
pub inline fn adapterRequestDevice(adapter: *gpu.Adapter, descriptor: ?*const gpu.Device.Descriptor, callback: gpu.RequestDeviceCallback, userdata: *anyopaque) void {
|
||||
_ = adapter;
|
||||
_ = descriptor;
|
||||
_ = callback;
|
||||
_ = userdata;
|
||||
unreachable;
|
||||
return procs.adapterRequestDevice.?(
|
||||
@ptrCast(c.WGPUAdapter, adapter),
|
||||
@ptrCast(?*const c.WGPUDeviceDescriptor, descriptor),
|
||||
@ptrCast(c.WGPURequestDeviceCallback, callback),
|
||||
userdata,
|
||||
);
|
||||
}
|
||||
|
||||
pub inline fn adapterReference(adapter: *gpu.Adapter) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue