mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[dxvk] Display barrier count in draw call HUD item
This commit is contained in:
parent
316e252a27
commit
25ebf94873
@ -366,6 +366,7 @@ namespace dxvk::hud {
|
||||
m_gpCount = diffCounters.getCtr(DxvkStatCounter::CmdDrawCalls);
|
||||
m_cpCount = diffCounters.getCtr(DxvkStatCounter::CmdDispatchCalls);
|
||||
m_rpCount = diffCounters.getCtr(DxvkStatCounter::CmdRenderPassCount);
|
||||
m_pbCount = diffCounters.getCtr(DxvkStatCounter::CmdBarrierCount);
|
||||
|
||||
m_lastUpdate = time;
|
||||
}
|
||||
@ -410,6 +411,17 @@ namespace dxvk::hud {
|
||||
{ 1.0f, 1.0f, 1.0f, 1.0f },
|
||||
str::format(m_rpCount));
|
||||
|
||||
position.y += 20.0f;
|
||||
renderer.drawText(16.0f,
|
||||
{ position.x, position.y },
|
||||
{ 0.25f, 0.5f, 1.0f, 1.0f },
|
||||
"Barriers:");
|
||||
|
||||
renderer.drawText(16.0f,
|
||||
{ position.x + 192.0f, position.y },
|
||||
{ 1.0f, 1.0f, 1.0f, 1.0f },
|
||||
str::format(m_pbCount));
|
||||
|
||||
position.y += 8.0f;
|
||||
return position;
|
||||
}
|
||||
|
@ -294,6 +294,7 @@ namespace dxvk::hud {
|
||||
uint64_t m_gpCount = 0;
|
||||
uint64_t m_cpCount = 0;
|
||||
uint64_t m_rpCount = 0;
|
||||
uint64_t m_pbCount = 0;
|
||||
|
||||
dxvk::high_resolution_clock::time_point m_lastUpdate
|
||||
= dxvk::high_resolution_clock::now();
|
||||
|
Loading…
x
Reference in New Issue
Block a user