summaryrefslogtreecommitdiffstats
path: root/src/plugins/renderers/opengl/debug/imguirenderer.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2020-03-22 09:35:01 +0000
committerMike Krus <mike.krus@kdab.com>2020-03-26 09:21:19 +0000
commit4d1ca5a7afc78ad4676d54ff168170bd7abe7273 (patch)
tree5525f6917cfc57e8cb12ddd037ad9a35a54490ba /src/plugins/renderers/opengl/debug/imguirenderer.cpp
parente742b02e1d5c8384d6c5a10039719989c32beb42 (diff)
Add ability to dump filter states
Add button in overlay UI to dump: - the details of technique and render pass filters in the render views - the details of technique and render pass keys in the scene graph This is useful to understand why some objects are not rendered. Change-Id: I57a284081ec986e49e90c979042cc0c17ee0d1cf Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/plugins/renderers/opengl/debug/imguirenderer.cpp')
-rw-r--r--src/plugins/renderers/opengl/debug/imguirenderer.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/renderers/opengl/debug/imguirenderer.cpp b/src/plugins/renderers/opengl/debug/imguirenderer.cpp
index 8dd9b98fe..0acee945a 100644
--- a/src/plugins/renderers/opengl/debug/imguirenderer.cpp
+++ b/src/plugins/renderers/opengl/debug/imguirenderer.cpp
@@ -283,13 +283,21 @@ void ImGuiRenderer::renderDebugOverlay(const QVector<RenderView *> &renderViews,
QMetaObject::invokeMethod(m_renderer->services()->systemInformation(), "dumpCommand",
Qt::QueuedConnection, Q_ARG(QString, QLatin1String("render framegraph")));
ImGui::SameLine();
- if (ImGui::Button("FrameGraph Paths##1"))
+ if (ImGui::Button("Render Views##1"))
QMetaObject::invokeMethod(m_renderer->services()->systemInformation(), "dumpCommand",
Qt::QueuedConnection, Q_ARG(QString, QLatin1String("render framepaths")));
+
+ ImGui::AlignTextToFramePadding();
+ ImGui::Text(" ");
+ ImGui::SameLine();
+ if (ImGui::Button("Filter State##1"))
+ QMetaObject::invokeMethod(m_renderer->services()->systemInformation(), "dumpCommand",
+ Qt::QueuedConnection, Q_ARG(QString, QLatin1String("render filterstates")));
ImGui::SameLine();
if (ImGui::Button("JobsGraph##1"))
QMetaObject::invokeMethod(m_renderer->services()->systemInformation(), "dumpCommand",
Qt::QueuedConnection, Q_ARG(QString, QLatin1String("dump jobs")));
+
ImGui::End();
if (m_showGLInfoWindow)