bit nicer looking debug logs
This commit is contained in:
parent
c5b5991bbe
commit
8817c505aa
1 changed files with 17 additions and 15 deletions
|
|
@ -72,21 +72,21 @@ pub fn init(ctx: App.scheduler.Context) !void {
|
|||
}
|
||||
|
||||
// --- DEBUG LIMITS ---
|
||||
std.debug.print("Adapter Limits:\n", .{});
|
||||
std.debug.print("| Texture Dimentions: ({})1D, ({})2D, ({})3D, ({})Array Layers\n", .{
|
||||
std.debug.print("\x1b[35m┏━ ADAPTER LIMITS ━┓\x1b[0m\n", .{});
|
||||
std.debug.print("\x1b[35m┃\x1b[0m Texture Dimentions: ({})1D, ({})2D, ({})3D, ({})Array Layers\n", .{
|
||||
limits.maxTextureDimension1D,
|
||||
limits.maxTextureDimension2D,
|
||||
limits.maxTextureDimension3D,
|
||||
limits.maxTextureArrayLayers,
|
||||
});
|
||||
std.debug.print("\x1b[35m┗━\x1b[0m\n", .{});
|
||||
|
||||
// --- DEBUG INFO ---
|
||||
std.debug.print("Adapter Info:\n", .{});
|
||||
std.debug.print("\x1b[35m┏━ ADAPTER INFO ━┓\x1b[0m\n", .{});
|
||||
std.debug.print(
|
||||
\\| Device: {s}
|
||||
\\| Backend: {s}
|
||||
\\
|
||||
, .{
|
||||
"\x1b[35m┃\x1b[0m Device: {s}\n" ++
|
||||
"\x1b[35m┃\x1b[0m Backend: {s}\n",
|
||||
.{
|
||||
info.device.data,
|
||||
switch (info.backendType) {
|
||||
wgpu.WGPUBackendType_Vulkan => "Vulkan",
|
||||
|
|
@ -95,7 +95,9 @@ pub fn init(ctx: App.scheduler.Context) !void {
|
|||
wgpu.WGPUBackendType_D3D12 => "D3D12",
|
||||
else => "idk", // TODO: idk 🥀
|
||||
},
|
||||
});
|
||||
},
|
||||
);
|
||||
std.debug.print("\x1b[35m┗━\x1b[0m\n", .{});
|
||||
|
||||
//
|
||||
// DEVICE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue