SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiStatistics.cpp
Go to the documentation of this file.
1/**
2* @file ImguiStatistics.cpp.
3* @brief The ImguiStatistics Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
9#include "Systems/SlateSystem.h"
10#include "Debugger/Perf/NsightPerfGPUProfilerReportGenerator.h"
11#include "Debugger/Perf/NsightPerfGPUProfilerOneshotCollection.h"
12#include "Debugger/Perf/NsightPerfGPUProfilerContinuous.h"
13#include "Core/Library/ProcessLibrary.h"
17
18namespace Spices {
19
21 const std::string& panelName ,
22 FrameInfo& frameInfo
23 )
24 : ImguiSlate(panelName, frameInfo)
25 {
27
28 /**
29 * @brief Instance.
30 */
31 m_ImguiVideoMemoryRuntimeHUD = SlateSystem::GetRegister()->Register<ImguiVideoMemoryRuntimeHUD>(true, "Video Memory Runtime HUD");
32 m_ImguiGPURuntimeProfilerHUD = SlateSystem::GetRegister()->Register<ImguiGPURuntimeProfilerHUD>(true, "GPU Runtime Profiler HUD");
33 m_ImguiRendererProfilerHUD = SlateSystem::GetRegister()->Register<ImguiRendererProfilerHUD >(true, "Renderer Profiler HUD");
34 }
35
37 {
39
40 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.5f, 0.5f, 0.5f, 1.0f));
41 ImGui::SeparatorText("GPU Stage");
42 ImGui::PopStyleColor();
43 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, Renderer Profiler HUD), "F8")) { m_ImguiRendererProfilerHUD->SetWindowState(true); }
44 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, GPU Runtime Profiler HUD), "F9")) { m_ImguiGPURuntimeProfilerHUD->SetWindowState(true); }
45 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.5f, 0.5f, 0.5f, 1.0f));
46 ImGui::SeparatorText("Video Memory Stage");
47 ImGui::PopStyleColor();
48 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, Video Memory Runtime HUD), "F11")) { m_ImguiVideoMemoryRuntimeHUD->SetWindowState(true); }
49
50 /**
51 * @brief End render Utilities.
52 */
53 ImGui::EndMenu();
54 }
55}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
Definition FrameInfo.h:32
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
Definition ImguiUtils.h:35
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
Definition ImguiUtils.h:27
ImguiStatistics(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.