remove Dawn / WebGPU support in favor of sysgpu

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-07-07 21:38:55 -07:00 committed by Stephen Gutekanst
parent e6cecc3ebe
commit 98801a258e
47 changed files with 25 additions and 8474 deletions

View file

@ -12,10 +12,6 @@ const std = @import("std");
const mach = @import("mach");
const core = mach.core;
pub usingnamespace if (!@hasDecl(App, "GPUInterface")) struct {
pub const GPUInterface = mach.wgpu.dawn.Interface;
} else struct {};
pub usingnamespace if (!@hasDecl(App, "SYSGPUInterface")) extern struct {
pub const SYSGPUInterface = mach.sysgpu.Impl;
} else struct {};
@ -31,8 +27,7 @@ pub fn main() !void {
core.allocator = gpa.allocator();
// Initialize GPU implementation
if (comptime !mach.use_sysgpu) try mach.wgpu.Impl.init(core.allocator, .{});
if (comptime mach.use_sysgpu) try mach.sysgpu.Impl.init(core.allocator, .{});
try mach.sysgpu.Impl.init(core.allocator, .{});
var app: App = undefined;
try app.init();