gpu: implement Dawn deviceSetDeviceLostCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:50:51 -07:00 committed by Stephen Gutekanst
parent 521ca45e29
commit 7e7a02a83e

View file

@ -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 {