mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
GPU zones highlight whole CPU thread timeline.
This commit is contained in:
parent
7f689dadbe
commit
2379d422cf
@ -2524,13 +2524,13 @@ void View::DrawZones()
|
|||||||
const auto txtsz = ImGui::CalcTextSize( txt );
|
const auto txtsz = ImGui::CalcTextSize( txt );
|
||||||
if( m_gpuThread == v->id )
|
if( m_gpuThread == v->id )
|
||||||
{
|
{
|
||||||
draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x448888DD );
|
draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x228888DD );
|
||||||
draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x888888DD );
|
draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x448888DD );
|
||||||
}
|
}
|
||||||
if( m_gpuInfoWindow && m_gpuInfoWindowThread == v->id )
|
if( m_gpuInfoWindow && m_gpuInfoWindowThread == v->id )
|
||||||
{
|
{
|
||||||
draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x4488DD88 );
|
draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x2288DD88 );
|
||||||
draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x8888DD88 );
|
draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x4488DD88 );
|
||||||
}
|
}
|
||||||
DrawTextContrast( draw, wpos + ImVec2( ty, oldOffset ), labelColor, txt );
|
DrawTextContrast( draw, wpos + ImVec2( ty, oldOffset ), labelColor, txt );
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user