From 400833c8c6fc1a532b6a94d11264436a048b5909 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 11 Mar 2022 18:49:51 -0700 Subject: [PATCH] gpu: successfully remove c.WGPUInstance from example Signed-off-by: Stephen Gutekanst --- gpu/examples/sample_utils.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/gpu/examples/sample_utils.zig b/gpu/examples/sample_utils.zig index 2586df38..abcfa907 100644 --- a/gpu/examples/sample_utils.zig +++ b/gpu/examples/sample_utils.zig @@ -20,7 +20,6 @@ const objc = @cImport({ const Setup = struct { native_instance: gpu.NativeInstance, - instance: c.WGPUInstance, backend_type: gpu.Adapter.BackendType, device: gpu.Device, window: glfw.Window, @@ -105,7 +104,6 @@ pub fn setup(allocator: std.mem.Allocator) !Setup { // backend_procs.*.deviceSetUncapturedErrorCallback.?(backend_device, printDeviceError, null); return Setup{ .native_instance = native_instance, - .instance = c.machDawnNativeInstance_get(instance), .backend_type = backend_type, .device = device, .window = window,