gpu: implement Dawn devicePopErrorScope

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:48:07 -07:00 committed by Stephen Gutekanst
parent 41763018f7
commit 08ac8d24b2

View file

@ -577,10 +577,11 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn devicePopErrorScope(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) bool { pub inline fn devicePopErrorScope(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) bool {
_ = device; return procs.devicePopErrorScope.?(
_ = callback; @ptrCast(c.WGPUDevice, device),
_ = userdata; @ptrCast(c.WGPUErrorCallback, callback),
unreachable; userdata,
);
} }
pub inline fn devicePushErrorScope(device: *gpu.Device, filter: gpu.ErrorFilter) void { pub inline fn devicePushErrorScope(device: *gpu.Device, filter: gpu.ErrorFilter) void {