From dba68c245710a861c5a9e1dd76818f0e424e46a6 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:21:40 -0700 Subject: [PATCH] gpu: implement Dawn instanceReference Signed-off-by: Stephen Gutekanst --- gpu/src/dawn_impl.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index c52f6683..2bc4d313 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -642,13 +642,11 @@ pub const Interface = gpu.Interface(struct { } pub inline fn instanceReference(instance: *gpu.Instance) void { - _ = instance; - unreachable; + procs.instanceReference.?(@ptrCast(c.WGPUInstance, instance)); } pub inline fn instanceRelease(instance: *gpu.Instance) void { - _ = instance; - unreachable; + procs.instanceRelease.?(@ptrCast(c.WGPUInstance, instance)); } pub inline fn pipelineLayoutSetLabel(pipeline_layout: *gpu.PipelineLayout, label: [*:0]const u8) void {