From 5bd33af68fd9ace177d445504fe6e91f0ac3f2fc Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 11 Aug 2022 15:34:54 -0700 Subject: [PATCH] mach: update libmach to use new mach/gpu API Signed-off-by: Stephen Gutekanst --- src/platform/libmach.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/libmach.zig b/src/platform/libmach.zig index c71fcf64..98ade32a 100644 --- a/src/platform/libmach.zig +++ b/src/platform/libmach.zig @@ -7,6 +7,8 @@ const native = @import("native.zig"); pub const App = @This(); +pub const GPUInterface = gpu.dawn.Interface; + // Dummy init, deinit, and update functions pub fn init(_: *App, _: *Core) !void {} @@ -38,6 +40,7 @@ const allocator = gpa.allocator(); // Returns a pointer to a newly allocated Core // Will return a null pointer if an error occurred while initializing Core pub export fn mach_core_init() ?*Core { + gpu.Impl.init(); const core = native.coreInit(allocator) catch { return @intToPtr(?*Core, 0); };