From b2aaaba4bf5f745e7da772ec1ed2fff48435c3bf Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 16:31:53 -0700 Subject: [PATCH] gpu: implement Dawn deviceLoseForTesting Signed-off-by: Stephen Gutekanst --- gpu/src/dawn_impl.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index 57af0f2c..93fe2230 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -536,8 +536,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn deviceLoseForTesting(device: *gpu.Device) void { - _ = device; - unreachable; + procs.deviceLoseForTesting.?(@ptrCast(c.WGPUDevice, device)); } pub inline fn devicePopErrorScope(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) bool {