sysgpu: remove everything related to dawn

This commit is contained in:
Ali Cheraghi 2024-07-13 01:05:50 +03:30 committed by Stephen Gutekanst
parent 98801a258e
commit 539aadf664
26 changed files with 12 additions and 121 deletions

View file

@ -1,42 +0,0 @@
// Check that the user's app matches the required interface.
comptime {
if (!@import("builtin").is_test) @import("mach").core.AppInterface(@import("app"));
}
// Forward "app" declarations into our namespace, such that @import("root").foo works as expected.
pub usingnamespace @import("app");
const App = @import("app").App;
const std = @import("std");
const mach = @import("mach");
const core = mach.core;
const gpu = mach.gpu;
var app: App = undefined;
export fn wasmInit() void {
App.init(&app) catch |err| @panic(@errorName(err));
}
export fn wasmUpdate() bool {
if (core.update(&app) catch |err| @panic(@errorName(err))) {
return true;
}
return false;
}
export fn wasmDeinit() void {
app.deinit();
}
// Define std_options.logFn if the user did not in their "app" main.zig
pub usingnamespace if (@hasDecl(App, "std_options")) struct {} else struct {
pub const std_options = std.Options{
.logFn = core.defaultLog,
};
};
// Define panic() if the user did not in their "app" main.zig
pub usingnamespace if (@hasDecl(App, "panic")) struct {} else struct {
pub const panic = core.defaultPanic;
};