From e42157d69ab16e4843df0254162bf47fa83ad18d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 16:50:04 -0700 Subject: [PATCH] gpu: implement Dawn deviceDestroy 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 2abd4c54..f9fd608e 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -501,8 +501,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn deviceDestroy(device: *gpu.Device) void { - _ = device; - unreachable; + procs.deviceDestroy.?(@ptrCast(c.WGPUDevice, device)); } pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: [*]gpu.FeatureName) usize {