implementing proper graphics pipeline creations
This commit is contained in:
@@ -14,17 +14,19 @@ comptime {
|
||||
var mutex: std.Io.Mutex = .init;
|
||||
|
||||
pub inline fn fixme(comptime format: []const u8, args: anytype) void {
|
||||
if (!lib.config.logs) {
|
||||
if (comptime !lib.config.logs) {
|
||||
return;
|
||||
}
|
||||
std.log.scoped(.FIXME).warn("FIXME: " ++ format, args);
|
||||
}
|
||||
|
||||
pub fn log(comptime level: std.log.Level, comptime scope: @EnumLiteral(), comptime format: []const u8, args: anytype) void {
|
||||
if (!lib.config.logs) {
|
||||
if (comptime !lib.config.logs) {
|
||||
return;
|
||||
}
|
||||
|
||||
const io = std.Options.debug_io;
|
||||
|
||||
const scope_name = @tagName(scope);
|
||||
const scope_prefix = comptime blk: {
|
||||
const limit = 30 - 4;
|
||||
@@ -42,13 +44,6 @@ pub fn log(comptime level: std.log.Level, comptime scope: @EnumLiteral(), compti
|
||||
.err => .red,
|
||||
};
|
||||
|
||||
const allocator = std.heap.smp_allocator;
|
||||
|
||||
var threaded: std.Io.Threaded = .init(allocator, .{});
|
||||
defer threaded.deinit();
|
||||
|
||||
const io = threaded.io();
|
||||
|
||||
const stderr_file = std.Io.File.stderr();
|
||||
const stdout_file = std.Io.File.stdout();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user