gpu: implement Dawn deviceSetDeviceLostCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
521ca45e29
commit
7e7a02a83e
1 changed files with 5 additions and 4 deletions
|
|
@ -592,10 +592,11 @@ pub const Interface = gpu.Interface(struct {
|
|||
}
|
||||
|
||||
pub inline fn deviceSetDeviceLostCallback(device: *gpu.Device, callback: gpu.Device.LostCallback, userdata: *anyopaque) void {
|
||||
_ = device;
|
||||
_ = callback;
|
||||
_ = userdata;
|
||||
unreachable;
|
||||
procs.deviceSetDeviceLostCallback.?(
|
||||
@ptrCast(c.WGPUDevice, device),
|
||||
@ptrCast(c.WGPUDeviceLostCallback, callback),
|
||||
userdata,
|
||||
);
|
||||
}
|
||||
|
||||
pub inline fn deviceSetLabel(device: *gpu.Device, label: [*:0]const u8) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue