mach/src/platform.zig
iddev5 50fe649ab1 mach: merge and remove the extra layer of indirection caused by Core and
GpuDriver

Core and GpuDriver both are merged into one type called Platform. Also
previously the fields and methods which were called as
``engine.core.field`` will now be ``engine.field`` i.e an extra layer is
removed.
2022-06-01 23:45:56 -07:00

7 lines
290 B
Zig

const builtin = @import("builtin");
const Platform = if (builtin.cpu.arch == .wasm32) @import("platform/wasm.zig") else @import("platform/native.zig");
// TODO: verify declarations and its signatures
pub const Type = Platform.Platform;
pub const BackingTimerType = Platform.BackingTimer;