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.
This commit is contained in:
parent
3961073084
commit
50fe649ab1
4 changed files with 225 additions and 263 deletions
|
|
@ -3,6 +3,5 @@ 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 CoreType = Platform.Core;
|
||||
pub const GpuDriverType = Platform.GpuDriver;
|
||||
pub const Type = Platform.Platform;
|
||||
pub const BackingTimerType = Platform.BackingTimer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue