Begin render PerfProfilerHUD.
Search String.
End render PerfProfilerHUD.
Begin render PerfProfilerHUD.
Search String.
End render PerfProfilerHUD.
21 {
23
25
27
32
33 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2.0f, 4.0f));
34
38 static std::string searchString;
39 static bool isEnableSearch = false;
40
44 {
46
47 ImGui::Spacing();
49 static char search[256] = {};
50 if (ImGui::InputTextWithHint(
"##",
ICON_TEXT(ICON_MD_SEARCH, Search), search, 128))
51 {
52 searchString = std::string(search);
53 if (searchString.size() == 0) isEnableSearch = false;
54 else isEnableSearch = true;
55 }
56 ImGui::PopItemWidth();
57
62 ImGui::Spacing();
63 }
64
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));
69
70 NSIGHTPERF_GPUPROFILERHUD_RENDERHUD
71
72 ImGui::PopStyleColor(4);
73 ImGui::PopStyleVar();
74
79 }
#define ICON_TEXT(icon, text)
#define SPICES_PROFILE_ZONEN(...)
#define SPICES_PROFILE_ZONE
static ImVec2 GetLineItemSize()
Get Line Width's Square Size.
void Begin(float alpha=1.0f, ImGuiWindowFlags flags=0)
Begin a common slate.
ImVec2 m_PanelSize
This slate's size.