Minor refactors and cleanups
This commit is contained in:
16
src/main.zig
16
src/main.zig
@@ -6,13 +6,23 @@ const vk = @import("vulkan");
|
||||
|
||||
const c = @import("const.zig");
|
||||
|
||||
const atoms = @import("engine/atoms.zig");
|
||||
const atoms = @import("engine/Atom.zig");
|
||||
const Engine = @import("engine/Engine.zig");
|
||||
const Swapchain = @import("engine/Swapchain.zig");
|
||||
const Game = @import("Game.zig");
|
||||
|
||||
pub const std_options: std.Options = .{
|
||||
.log_level = .info,
|
||||
.log_scope_levels = &.{
|
||||
.{
|
||||
.scope = .vulkan,
|
||||
.level = .debug,
|
||||
},
|
||||
.{
|
||||
.scope = .deinit,
|
||||
// Change to `.debug` to see a log when calling `deinit`.
|
||||
.level = .info,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
pub fn main() !void {
|
||||
@@ -21,7 +31,7 @@ pub fn main() !void {
|
||||
|
||||
const allocator = gpa.allocator();
|
||||
|
||||
atoms.init(allocator);
|
||||
try atoms.init(allocator);
|
||||
defer atoms.deinit();
|
||||
|
||||
stbi.init(allocator);
|
||||
|
||||
Reference in New Issue
Block a user