From cf1a022b983e78ac69983edea7e7f2d9981502a8 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:35:49 -0700 Subject: [PATCH] gpu: implement Dawn samplerSetLabel 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 e291e073..bb79724e 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -1007,9 +1007,7 @@ pub const Interface = gpu.Interface(struct { } pub inline fn samplerSetLabel(sampler: *gpu.Sampler, label: [*:0]const u8) void { - _ = sampler; - _ = label; - unreachable; + procs.samplerSetLabel.?(@ptrCast(c.WGPUSampler, sampler), label); } pub inline fn samplerReference(sampler: *gpu.Sampler) void {