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