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 {
|
pub inline fn adapterRequestDevice(adapter: *gpu.Adapter, descriptor: ?*const gpu.Device.Descriptor, callback: gpu.RequestDeviceCallback, userdata: *anyopaque) void {
|
||||||
_ = adapter;
|
return procs.adapterRequestDevice.?(
|
||||||
_ = descriptor;
|
@ptrCast(c.WGPUAdapter, adapter),
|
||||||
_ = callback;
|
@ptrCast(?*const c.WGPUDeviceDescriptor, descriptor),
|
||||||
_ = userdata;
|
@ptrCast(c.WGPURequestDeviceCallback, callback),
|
||||||
unreachable;
|
userdata,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn adapterReference(adapter: *gpu.Adapter) void {
|
pub inline fn adapterReference(adapter: *gpu.Adapter) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue