adding software blitter base

This commit is contained in:
2025-12-20 00:00:42 +01:00
parent 084412ac1c
commit 8a641adb8e
9 changed files with 95 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
//! Here lies the documentation of the common internal API that backends need to implement
const std = @import("std");
const builtin = @import("builtin");
const vk = @import("vulkan");
pub const vku = @cImport({
@cInclude("vulkan/utility/vk_format_utils.h");
@@ -79,6 +80,14 @@ pub inline fn getLogVerboseLevel() LogVerboseLevel {
.Standard;
}
pub fn unsupported(comptime fmt: []const u8, args: anytype) void {
if (builtin.mode == std.builtin.OptimizeMode.Debug) {
std.debug.panic("UNSUPPORTED " ++ fmt, args);
} else {
std.log.scoped(.UNSUPPORTED).warn(fmt, args);
}
}
comptime {
_ = lib_vulkan;
}