Add thread color boxes to GPU context tooltips.

This commit is contained in:
Bartosz Taudul 2019-09-24 23:45:36 +02:00
parent 6ffbd00b0c
commit a7e3324eba

View File

@ -2127,6 +2127,8 @@ void View::DrawZones()
if( !isVulkan )
{
TextFocused( "Thread:", m_worker.GetThreadName( v->thread ) );
ImGui::SameLine();
SmallColorBox( GetThreadColor( v->thread, 0 ) );
}
else
{
@ -2146,6 +2148,8 @@ void View::DrawZones()
TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( tid, true ) );
ImGui::SameLine();
SmallColorBox( GetThreadColor( tid, 0 ) );
}
else
{
@ -2156,6 +2160,8 @@ void View::DrawZones()
ImGui::TextUnformatted( m_worker.GetThreadName( td.first ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( td.first, true ) );
ImGui::SameLine();
SmallColorBox( GetThreadColor( td.first, 0 ) );
}
ImGui::Unindent();
}