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:
parent
3552983084
commit
645886db8d
@ -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 },
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user