implementation of vkCmdFillBuffer and rework of logger

This commit is contained in:
2025-11-22 21:43:31 +01:00
parent 5df8677051
commit b586ff18e1
16 changed files with 325 additions and 82 deletions

View File

@@ -1,3 +1,4 @@
const std = @import("std");
const vk = @import("vulkan");
pub const VkError = error{
@@ -51,7 +52,12 @@ pub const VkError = error{
NotEnoughSpaceKhr,
};
pub inline fn errorLogger(err: VkError) void {
std.log.scoped(.errorLogger).err("Error logger catched a '{s}'", .{@errorName(err)});
}
pub inline fn toVkResult(err: VkError) vk.Result {
errorLogger(err);
return switch (err) {
VkError.NotReady => .not_ready,
VkError.Timeout => .timeout,