From 5c6ea4b4e4cfbcaf8783956faef89610f5a14447 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 16:50:38 -0700 Subject: [PATCH] gpu: implement Dawn deviceCreateErrorExternalTexture 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 f9fd608e..7581078f 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -433,8 +433,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn deviceCreateErrorExternalTexture(device: *gpu.Device) *gpu.ExternalTexture { - _ = device; - unreachable; + return @ptrCast(*gpu.ExternalTexture, procs.deviceCreateErrorExternalTexture.?(@ptrCast(c.WGPUDevice, device))); } pub inline fn deviceCreateExternalTexture(device: *gpu.Device, external_texture_descriptor: *const gpu.ExternalTexture.Descriptor) *gpu.ExternalTexture {