mach: export WebGPU C ABI compatibility
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ec8ced475f
commit
4e47477e9a
2 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ _unused: i32,
|
|||
|
||||
pub const GPUInterface = gpu.dawn.Interface;
|
||||
|
||||
const _ = gpu.Export(GPUInterface);
|
||||
|
||||
// Dummy init, deinit, and update functions
|
||||
pub fn init(_: *App, _: *Core) !void {}
|
||||
|
||||
|
|
|
|||
|
|
@ -558,6 +558,8 @@ 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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue