Skip to content

Commit 7574506

Browse files
ImGuiRenderer: added debug group for rendering commands
1 parent fe39c86 commit 7574506

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Imgui/src/ImGuiDiligentRenderer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "DeviceContext.h"
3333
#include "MapHelper.hpp"
3434
#include "GraphicsAccessories.hpp"
35+
#include "ScopedDebugGroup.hpp"
3536

3637
namespace Diligent
3738
{
@@ -870,6 +871,8 @@ float4 ImGuiDiligentRenderer::TransformClipRect(const ImVec2& DisplaySize, const
870871

871872
void ImGuiDiligentRenderer::RenderDrawData(IDeviceContext* pCtx, ImDrawData* pDrawData)
872873
{
874+
ScopedDebugGroup DebugGroup{pCtx, "ImGui"};
875+
873876
// Avoid rendering when minimized
874877
if (pDrawData->DisplaySize.x <= 0.0f || pDrawData->DisplaySize.y <= 0.0f || pDrawData->CmdListsCount == 0)
875878
return;

0 commit comments

Comments
 (0)