Cleaned up memory arena debugger + tag.

WIP
This commit is contained in:
2026-01-21 20:36:38 -05:00
parent a41a5e6b20
commit c10d371836
21 changed files with 169 additions and 215 deletions

View File

@@ -267,10 +267,6 @@ void JulietApplication::Update()
}
}
if (evt.Type == EventType::Key_Down)
{
}
// Shader hot reload using keyboard.
if (!reloadShadersDebounce && ((GetKeyModState() & KeyMod::Alt) != KeyMod::None) && IsKeyDown(ScanCode::R))
{
@@ -355,6 +351,11 @@ void JulietApplication::Update()
Running = false;
}
}
if (ShowMemoryDebugger)
{
Debug::DebugDrawMemoryArena();
}
}
void JulietApplication::OnPreRender(CommandList* cmd)
@@ -383,8 +384,6 @@ void JulietApplication::OnPreRender(CommandList* cmd)
CopyBuffer(cmd, ConstantBuffer, TransferBuffer, 256);
TransitionBufferToReadable(cmd, ConstantBuffer);
}
}
void JulietApplication::OnRender(RenderPass* pass, CommandList* cmd)
@@ -403,11 +402,6 @@ void JulietApplication::OnRender(RenderPass* pass, CommandList* cmd)
SetPushConstants(cmd, ShaderStage::Vertex, 0, sizeof(pushData) / 4, &pushData);
DrawPrimitives(pass, 6, 1, 0, 0);
if (ShowMemoryDebugger)
{
MemoryDebugger::DrawGlobalArenas();
}
}
ColorTargetInfo JulietApplication::GetColorTargetInfo(Texture* swapchainTexture)