From c585d716c627ed62e3edb19143fd2ac742ef88d5 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:31:37 -0700 Subject: [PATCH] gpu: implement Dawn commandBufferSetLabel 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 59857562..93d3a1de 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -161,9 +161,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn commandBufferSetLabel(command_buffer: *gpu.CommandBuffer, label: [*:0]const u8) void { - _ = command_buffer; - _ = label; - unreachable; + procs.commandBufferSetLabel.?(@ptrCast(c.WGPUCommandBuffer, command_buffer), label); } pub inline fn commandBufferReference(command_buffer: *gpu.CommandBuffer) void {