2
3
4
5
9#include "Debugger/Perf/NsightPerfGPUProfilerHUD.h"
14 const std::string& panelName ,
29
30
33 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2.0f, 4.0f));
36
37
38 static std::string searchString;
39 static bool isEnableSearch =
false;
42
43
48 ImGui::PushItemWidth(m_PanelSize.x - ImGuiH::GetLineItemSize().x * 2.0f - ImGui::GetStyle().WindowPadding.x);
49 static char search[256] = {};
50 if (ImGui::InputTextWithHint(
"##",
ICON_TEXT(ICON_MD_SEARCH, Search), search, 128))
52 searchString = std::string(search);
53 if (searchString.size() == 0) isEnableSearch =
false;
54 else isEnableSearch =
true;
56 ImGui::PopItemWidth();
58 ImGui::SameLine(m_PanelSize.x - ImGuiH::GetLineItemSize().x * 2.0f);
59 ImGui::Button(ICON_MD_FILTER_ALT, ImGuiH::GetLineItemSize());
60 ImGui::SameLine(m_PanelSize.x - ImGuiH::GetLineItemSize().x * 1.0f);
61 ImGui::Button(ICON_MD_REORDER, ImGuiH::GetLineItemSize());
65 ImGui::PushStyleColor(ImGuiCol_Header, ImVec4(0.196f, 0.204f, 0.2f, 1.0f));
66 ImGui::PushStyleColor(ImGuiCol_HeaderHovered, ImVec4(0.164f, 0.18f, 0.184f, 1.0f));
67 ImGui::PushStyleColor(ImGuiCol_HeaderActive, ImVec4(0.164f, 0.18f, 0.184f, 1.0f));
68 ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.196f, 0.204f, 0.2f, 1.0f));
70 NSIGHTPERF_GPUPROFILERHUD_RENDERHUD
72 ImGui::PopStyleColor(4);
76
77
#define ICON_TEXT(icon, text)
#define SPICES_PROFILE_ZONEN(...)
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
ImguiGPURuntimeProfilerHUD(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
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...