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 {
_ = device;
_ = callback;
_ = userdata;
unreachable;
procs.deviceSetUncapturedErrorCallback.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(c.WGPUErrorCallback, callback),
userdata,
);
}
pub inline fn deviceTick(device: *gpu.Device) void {