From 521ca45e2984435a2b5711e74ee77a00e6297d62 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 17:48:40 -0700 Subject: [PATCH] gpu: implement Dawn devicePushErrorScope Signed-off-by: Stephen Gutekanst --- gpu/src/dawn_impl.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index dbb604ab..fa954946 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -585,9 +585,10 @@ pub const Interface = gpu.Interface(struct { } pub inline fn devicePushErrorScope(device: *gpu.Device, filter: gpu.ErrorFilter) void { - _ = device; - _ = filter; - unreachable; + procs.devicePushErrorScope.?( + @ptrCast(c.WGPUDevice, device), + @enumToInt(filter), + ); } pub inline fn deviceSetDeviceLostCallback(device: *gpu.Device, callback: gpu.Device.LostCallback, userdata: *anyopaque) void {