From 73c86ddb4a4b20bf9219e6125dcd95a10bd6943b Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:28:58 -0700 Subject: [PATCH] gpu: implement Dawn textureRelease 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 50f516d2..1d04e861 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -1170,8 +1170,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn textureRelease(texture: *gpu.Texture) void { - _ = texture; - unreachable; + procs.textureRelease.?(@ptrCast(c.WGPUTexture, texture)); } pub inline fn textureViewSetLabel(texture_view: *gpu.TextureView, label: [*:0]const u8) void {