SpiecsEngine
 
Loading...
Searching...
No Matches

◆ OnRender()

void Spices::ImguiDebugger::OnRender ( )
overridevirtual

This interface is called On SlateRenderer Render.

End render Utilities.

End render Utilities.

Implements Spices::ImguiSlate.

Definition at line 24 of file ImguiDebugger.cpp.

25 {
27
28 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.5f, 0.5f, 0.5f, 1.0f));
29 ImGui::SeparatorText("CPU Stage");
30 ImGui::PopStyleColor();
31 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, CPU Profiler), "F8")) { ProcessLibrary::OpenProcess(m_ProfileProcessName.c_str()); }
32 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.5f, 0.5f, 0.5f, 1.0f));
33 ImGui::SeparatorText("GPU Stage");
34 ImGui::PopStyleColor();
35 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, GPU Continuous), "F9")) { NSIGHTPERF_GPUPROFILERCONTINUOUS_CAPTUREFRAME }
36 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, GPU Report Generate), "F10")) { NSIGHTPERF_GPUPROFILERREPORT_CAPTUREFRAME }
37 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, GPU One-Shot Collection), "F10")) { NSIGHTPERF_GPUPROFILERONESHOT_CAPTUREFRAME }
38
42 ImGui::EndMenu();
43 }
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define SPICES_PROFILE_ZONE
std::string m_ProfileProcessName
The Path of tracy-profiler.
static bool OpenProcess(const char *processPath, const char *commandLine="")
Open a Process with command.