1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[hud] Display pipeline library count in HUD

This commit is contained in:
Philip Rebohle 2022-07-08 11:33:58 +02:00
parent 3552983084
commit 645886db8d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 18 additions and 3 deletions

View File

@ -466,6 +466,7 @@ namespace dxvk::hud {
DxvkStatCounters counters = m_device->getStatCounters();
m_graphicsPipelines = counters.getCtr(DxvkStatCounter::PipeCountGraphics);
m_graphicsLibraries = counters.getCtr(DxvkStatCounter::PipeCountLibrary);
m_computePipelines = counters.getCtr(DxvkStatCounter::PipeCountCompute);
}
@ -483,7 +484,20 @@ namespace dxvk::hud {
{ position.x + 240.0f, position.y },
{ 1.0f, 1.0f, 1.0f, 1.0f },
str::format(m_graphicsPipelines));
if (m_graphicsLibraries) {
position.y += 20.0f;
renderer.drawText(16.0f,
{ position.x, position.y },
{ 1.0f, 0.25f, 1.0f, 1.0f },
"Graphics shaders:");
renderer.drawText(16.0f,
{ position.x + 240.0f, position.y },
{ 1.0f, 1.0f, 1.0f, 1.0f },
str::format(m_graphicsLibraries));
}
position.y += 20.0f;
renderer.drawText(16.0f,
{ position.x, position.y },

View File

@ -330,8 +330,9 @@ namespace dxvk::hud {
Rc<DxvkDevice> m_device;
uint64_t m_graphicsPipelines = 0;
uint64_t m_computePipelines = 0;
uint64_t m_graphicsPipelines = 0;
uint64_t m_graphicsLibraries = 0;
uint64_t m_computePipelines = 0;
};