From d39e353587f805a4ffea203a00f407e9372bef1a Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:33:32 -0700 Subject: [PATCH] gpu: implement Dawn deviceSetLabel Signed-off-by: Stephen Gutekanst --- gpu/src/dawn_impl.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index 2f96b084..09a7d741 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -561,9 +561,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn deviceSetLabel(device: *gpu.Device, label: [*:0]const u8) void { - _ = device; - _ = label; - unreachable; + procs.deviceSetLabel.?(@ptrCast(c.WGPUDevice, device), label); } pub inline fn deviceSetLoggingCallback(device: *gpu.Device, callback: gpu.LoggingCallback, userdata: *anyopaque) void {