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

[hud] Add 'api' option to show the client API

This commit is contained in:
Philip Rebohle 2019-02-15 18:05:44 +01:00
parent 10123ce9ab
commit 11d2082fd2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 10 additions and 0 deletions

View File

@ -90,6 +90,14 @@ namespace dxvk::hud {
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)) {
position = m_hudDeviceInfo.render(
ctx, m_renderer, position);

View File

@ -13,6 +13,7 @@ namespace dxvk::hud {
{ "pipelines", HudElement::StatPipelines },
{ "memory", HudElement::StatMemory },
{ "version", HudElement::DxvkVersion },
{ "api", HudElement::DxvkClientApi },
}};

View File

@ -19,6 +19,7 @@ namespace dxvk::hud {
StatPipelines = 5,
StatMemory = 6,
DxvkVersion = 7,
DxvkClientApi = 8,
};
using HudElements = Flags<HudElement>;