mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 08:14:34 +00:00
Display GPU context information tooltip.
This commit is contained in:
parent
1a4889116e
commit
18252feeeb
@ -2013,11 +2013,21 @@ void View::DrawZones()
|
|||||||
sprintf( buf, "GPU context %i", i );
|
sprintf( buf, "GPU context %i", i );
|
||||||
draw->AddText( wpos + ImVec2( ty, offset ), v->showFull ? 0xFFFFAAAA : 0xFF886666, buf );
|
draw->AddText( wpos + ImVec2( ty, offset ), v->showFull ? 0xFFFFAAAA : 0xFF886666, buf );
|
||||||
|
|
||||||
if( hover && ImGui::IsMouseClicked( 0 ) && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + ImGui::CalcTextSize( buf ).x, offset + ty ) ) )
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + ImGui::CalcTextSize( buf ).x, offset + ty ) ) )
|
||||||
|
{
|
||||||
|
if( ImGui::IsMouseClicked( 0 ) )
|
||||||
{
|
{
|
||||||
v->showFull = !v->showFull;
|
v->showFull = !v->showFull;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( "%s", buf );
|
||||||
|
ImGui::Separator();
|
||||||
|
ImGui::Text( "Thread: %s", GetThreadString( v->thread ) );
|
||||||
|
ImGui::Text( "Query accuracy bits: %i", v->accuracyBits );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
|
|
||||||
offset += ostep;
|
offset += ostep;
|
||||||
if( v->showFull )
|
if( v->showFull )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user