mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Implement a Performance Counter Viewer pane, hook up selection dialog
This commit is contained in:
committed by
baldurk
parent
7d15d75638
commit
03343239c7
@@ -40,6 +40,7 @@
|
||||
#include "Windows/Dialogs/LiveCapture.h"
|
||||
#include "Windows/EventBrowser.h"
|
||||
#include "Windows/MainWindow.h"
|
||||
#include "Windows/PerformanceCounterViewer.h"
|
||||
#include "Windows/PipelineState/PipelineStateViewer.h"
|
||||
#include "Windows/PixelHistoryView.h"
|
||||
#include "Windows/PythonShell.h"
|
||||
@@ -732,6 +733,18 @@ IDebugMessageView *CaptureContext::GetDebugMessageView()
|
||||
return m_DebugMessageView;
|
||||
}
|
||||
|
||||
IPerformanceCounterViewer *CaptureContext::GetPerformanceCounterViewer()
|
||||
{
|
||||
if(m_PerformanecCounterViewer)
|
||||
return m_PerformanecCounterViewer;
|
||||
|
||||
m_PerformanecCounterViewer = new PerformanceCounterViewer(*this, m_MainWindow);
|
||||
m_PerformanecCounterViewer->setObjectName(lit("performanceCounterViewer"));
|
||||
setupDockWindow(m_PerformanecCounterViewer);
|
||||
|
||||
return m_PerformanecCounterViewer;
|
||||
}
|
||||
|
||||
IStatisticsViewer *CaptureContext::GetStatisticsViewer()
|
||||
{
|
||||
if(m_StatisticsViewer)
|
||||
@@ -803,6 +816,11 @@ void CaptureContext::ShowDebugMessageView()
|
||||
m_MainWindow->showDebugMessageView();
|
||||
}
|
||||
|
||||
void CaptureContext::ShowPerformanceCounterViewer()
|
||||
{
|
||||
m_MainWindow->showPerformanceCounterViewer();
|
||||
}
|
||||
|
||||
void CaptureContext::ShowStatisticsViewer()
|
||||
{
|
||||
m_MainWindow->showStatisticsViewer();
|
||||
|
||||
Reference in New Issue
Block a user