Minor refactors and cleanups

This commit is contained in:
2025-12-02 15:58:51 +01:00
parent faddb1f35e
commit be4ae4f1a7
15 changed files with 223 additions and 121 deletions

View File

@@ -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);