Skip to content

Commit

Permalink
Added debug group labels for ImGui rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Dec 2, 2023
1 parent 50c39fb commit e0849d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lvk/HelpersImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ void ImGuiRenderer::endFrame(lvk::ICommandBuffer& cmdBuffer) {
return;
}

cmdBuffer.cmdPushDebugGroupLabel("ImGui Rendering", 0xff00ff00);
cmdBuffer.cmdBindDepthState({});
cmdBuffer.cmdBindViewport({
.x = 0.0f,
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit e0849d1

Please sign in to comment.