Add GUI for GPU context hiding.

This commit is contained in:
Bartosz Taudul 2017-11-30 15:34:52 +01:00
parent 5246098c79
commit a33e70567b

View File

@ -3586,6 +3586,14 @@ void View::DrawOptions()
const auto tw = ImGui::GetFontSize(); const auto tw = ImGui::GetFontSize();
ImGui::Begin( "Options", &m_showOptions, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_ShowBorders ); ImGui::Begin( "Options", &m_showOptions, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_ShowBorders );
ImGui::Checkbox( "Draw GPU zones", &m_drawGpuZones ); ImGui::Checkbox( "Draw GPU zones", &m_drawGpuZones );
ImGui::Indent( tw );
for( size_t i=0; i<m_gpuData.size(); i++ )
{
char buf[1024];
sprintf( buf, "GPU context %zu", i );
ImGui::Checkbox( buf , &m_gpuData[i]->visible );
}
ImGui::Unindent( tw );
ImGui::Checkbox( "Draw CPU zones", &m_drawZones ); ImGui::Checkbox( "Draw CPU zones", &m_drawZones );
int ns = (int)m_namespace; int ns = (int)m_namespace;
ImGui::Combo( "Namespaces", &ns, "Full\0Shortened\0None\0" ); ImGui::Combo( "Namespaces", &ns, "Full\0Shortened\0None\0" );