From 3c4c8447867e89aed84e54de0f05cdbbac979e7d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:27:57 -0700 Subject: [PATCH] gpu: implement Dawn surfaceRelease 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 d522ecba..751b0c3b 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -1078,8 +1078,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn surfaceRelease(surface: *gpu.Surface) void { - _ = surface; - unreachable; + procs.surfaceRelease.?(@ptrCast(c.WGPUSurface, surface)); } pub inline fn swapChainConfigure(swap_chain: *gpu.SwapChain, format: gpu.Texture.Format, allowed_usage: gpu.Texture.UsageFlags, width: u32, height: u32) void {