mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 22:54:16 +01:00
[hud] Add 'api' option to show the client API
This commit is contained in:
parent
10123ce9ab
commit
11d2082fd2
@ -90,6 +90,14 @@ namespace dxvk::hud {
|
|||||||
position.y += 24.0f;
|
position.y += 24.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_config.elements.test(HudElement::DxvkClientApi)) {
|
||||||
|
m_renderer.drawText(ctx, 16.0f,
|
||||||
|
{ position.x, position.y },
|
||||||
|
{ 1.0f, 1.0f, 1.0f, 1.0f },
|
||||||
|
m_device->clientApi());
|
||||||
|
position.y += 24.0f;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_config.elements.test(HudElement::DeviceInfo)) {
|
if (m_config.elements.test(HudElement::DeviceInfo)) {
|
||||||
position = m_hudDeviceInfo.render(
|
position = m_hudDeviceInfo.render(
|
||||||
ctx, m_renderer, position);
|
ctx, m_renderer, position);
|
||||||
|
@ -13,6 +13,7 @@ namespace dxvk::hud {
|
|||||||
{ "pipelines", HudElement::StatPipelines },
|
{ "pipelines", HudElement::StatPipelines },
|
||||||
{ "memory", HudElement::StatMemory },
|
{ "memory", HudElement::StatMemory },
|
||||||
{ "version", HudElement::DxvkVersion },
|
{ "version", HudElement::DxvkVersion },
|
||||||
|
{ "api", HudElement::DxvkClientApi },
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ namespace dxvk::hud {
|
|||||||
StatPipelines = 5,
|
StatPipelines = 5,
|
||||||
StatMemory = 6,
|
StatMemory = 6,
|
||||||
DxvkVersion = 7,
|
DxvkVersion = 7,
|
||||||
|
DxvkClientApi = 8,
|
||||||
};
|
};
|
||||||
|
|
||||||
using HudElements = Flags<HudElement>;
|
using HudElements = Flags<HudElement>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user