From e0849d1ea843cde282df37030761e3e6533d6b1b Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Sat, 2 Dec 2023 12:27:50 -0800 Subject: [PATCH] Added debug group labels for ImGui rendering --- lvk/HelpersImGui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lvk/HelpersImGui.cpp b/lvk/HelpersImGui.cpp index aacd5e435d..bcf4892c95 100644 --- a/lvk/HelpersImGui.cpp +++ b/lvk/HelpersImGui.cpp @@ -180,6 +180,7 @@ void ImGuiRenderer::endFrame(lvk::ICommandBuffer& cmdBuffer) { return; } + cmdBuffer.cmdPushDebugGroupLabel("ImGui Rendering", 0xff00ff00); cmdBuffer.cmdBindDepthState({}); cmdBuffer.cmdBindViewport({ .x = 0.0f, @@ -273,6 +274,8 @@ void ImGuiRenderer::endFrame(lvk::ICommandBuffer& cmdBuffer) { idxOffset += cmdList->IdxBuffer.Size; vtxOffset += cmdList->VtxBuffer.Size; } + + cmdBuffer.cmdPopDebugGroupLabel(); } void ImGuiRenderer::setDisplayScale(float displayScale) {