almost finished update to Zig 0.16.0
This commit is contained in:
@@ -9,7 +9,7 @@ pub const vku = @cImport({
|
||||
|
||||
pub const errors = @import("error_set.zig");
|
||||
pub const lib_vulkan = @import("lib_vulkan.zig");
|
||||
pub const logger = @import("logger/logger.zig");
|
||||
pub const logger = @import("logger.zig");
|
||||
pub const format = @import("format.zig");
|
||||
|
||||
pub const Dispatchable = @import("Dispatchable.zig").Dispatchable;
|
||||
@@ -92,17 +92,18 @@ pub const LogVerboseLevel = enum {
|
||||
};
|
||||
|
||||
pub fn getLogVerboseLevel() LogVerboseLevel {
|
||||
const allocator = std.heap.c_allocator;
|
||||
const level = std.process.getEnvVarOwned(allocator, DRIVER_LOGS_ENV_NAME) catch return .None;
|
||||
defer allocator.free(level);
|
||||
return if (std.mem.eql(u8, level, "none"))
|
||||
.None
|
||||
else if (std.mem.eql(u8, level, "all"))
|
||||
.High
|
||||
else if (std.mem.eql(u8, level, "stupid"))
|
||||
.TooMuch
|
||||
else
|
||||
.Standard;
|
||||
//const allocator = std.heap.c_allocator;
|
||||
//const level = std.process.getEnvVarOwned(allocator, DRIVER_LOGS_ENV_NAME) catch return .None;
|
||||
//defer allocator.free(level);
|
||||
//return if (std.mem.eql(u8, level, "none"))
|
||||
// .None
|
||||
//else if (std.mem.eql(u8, level, "all"))
|
||||
// .High
|
||||
//else if (std.mem.eql(u8, level, "stupid"))
|
||||
// .TooMuch
|
||||
//else
|
||||
// .Standard;
|
||||
return .High;
|
||||
}
|
||||
|
||||
pub inline fn unsupported(comptime fmt: []const u8, args: anytype) void {
|
||||
|
||||
Reference in New Issue
Block a user