From d382980ba23f1012f9dbecfdc994120ef73da422 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 17:24:15 -0700 Subject: [PATCH] gpu: implement Dawn textureDestroy 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 90e9949d..2ba6646d 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -1094,8 +1094,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn textureDestroy(texture: *gpu.Texture) void { - _ = texture; - unreachable; + procs.textureDestroy.?(@ptrCast(c.WGPUTexture, texture)); } pub inline fn textureGetDepthOrArrayLayers(texture: *gpu.Texture) u32 {