From 400634f5ff03d22d9dd4eed896c9fba16554f98f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:28:48 -0700 Subject: [PATCH] gpu: implement Dawn textureReference 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 32af1903..50f516d2 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -1166,8 +1166,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn textureReference(texture: *gpu.Texture) void { - _ = texture; - unreachable; + procs.textureReference.?(@ptrCast(c.WGPUTexture, texture)); } pub inline fn textureRelease(texture: *gpu.Texture) void {