Add chess GUI and move generation

This commit is contained in:
2026-05-19 16:05:53 -08:00
parent b36f5b0b84
commit 4131c93f99
69 changed files with 80468 additions and 218 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
const std = @import("std");
const log = std.log.scoped(.graphics);
const vk = @import("vulkan");
const commands = @import("commands.zig");
@@ -33,7 +34,7 @@ pub fn drawFrame(
const image_index = image_result.image_index;
const should_recreate_after_present = image_result.result == .suboptimal_khr;
std.debug.print("Acquired swapchain image: {}\n", .{image_index});
log.debug("Acquired swapchain image: {}", .{image_index});
try ldc.vkd.resetFences(ldc.device, &wait_fences);
@@ -76,7 +77,7 @@ pub fn drawFrame(
error.OutOfDateKHR => return .Recreate,
else => return err,
};
std.debug.print("Presented one frame\n", .{});
log.debug("Presented one frame", .{});
if (should_recreate_after_present or present_result == .suboptimal_khr) {
return FrameResult.Recreate;