From c94dee263bd320ce1629f25e1dad55ebb789cd80 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 11 Oct 2022 01:06:48 +0200 Subject: [PATCH] mach: correct WebGPU C ABI export Signed-off-by: Stephen Gutekanst --- src/platform/native.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/native.zig b/src/platform/native.zig index 85268bed..7918d310 100644 --- a/src/platform/native.zig +++ b/src/platform/native.zig @@ -558,14 +558,13 @@ var app: App = undefined; pub const GPUInterface = gpu.dawn.Interface; -const _ = gpu.Export(GPUInterface); - pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; defer _ = gpa.deinit(); const allocator = gpa.allocator(); gpu.Impl.init(); + _ = gpu.Export(GPUInterface); var core = try coreInit(allocator); defer coreDeinit(core, allocator);