gpu: implement Dawn deviceSetUncapturedErrorCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:51:56 -07:00 committed by Stephen Gutekanst
parent 07cf5743bd
commit 4411d6b535

View file

@ -612,10 +612,11 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn deviceSetUncapturedErrorCallback(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) void { pub inline fn deviceSetUncapturedErrorCallback(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) void {
_ = device; procs.deviceSetUncapturedErrorCallback.?(
_ = callback; @ptrCast(c.WGPUDevice, device),
_ = userdata; @ptrCast(c.WGPUErrorCallback, callback),
unreachable; userdata,
);
} }
pub inline fn deviceTick(device: *gpu.Device) void { pub inline fn deviceTick(device: *gpu.Device) void {