Unify zone info window thread retrieval.

This commit is contained in:
Bartosz Taudul 2018-03-19 16:11:44 +01:00
parent 0f6ec65b65
commit 4d34ccc30c

View File

@ -2522,17 +2522,18 @@ void View::DrawGpuInfoWindow()
ImGui::Separator();
const auto tid = GetZoneThread( ev );
const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
ImGui::Text( "Zone name: %s", m_worker.GetString( srcloc.name ) );
ImGui::Text( "Function: %s", m_worker.GetString( srcloc.function ) );
ImGui::Text( "Location: %s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
ImGui::Text( "Thread: %s", m_worker.GetThreadString( m_gpuInfoWindowThread ) );
ImGui::Text( "Thread: %s", m_worker.GetThreadString( tid ) );
ImGui::SameLine();
ImGui::TextDisabled( "(id)" );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::Text( "0x%" PRIX64, m_gpuInfoWindowThread );
ImGui::Text( "0x%" PRIX64, tid );
ImGui::EndTooltip();
}