2
3
4
5
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"
21 const std::string& panelName ,
29
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");
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); }
51
52
#define ICON_TEXT(icon, text)
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
ImguiStatistics(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.