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

[d3d9] Re-introduce client API HUD item

This commit is contained in:
Philip Rebohle 2020-01-28 13:15:02 +01:00 committed by Joshie
parent 38ad868214
commit 1e6ad0b372
2 changed files with 10 additions and 1 deletions

View File

@ -1023,8 +1023,10 @@ namespace dxvk {
void D3D9SwapChainEx::CreateHud() {
m_hud = hud::Hud::createHud(m_device);
if (m_hud != nullptr)
if (m_hud != nullptr) {
m_hud->addItem<hud::HudClientApiItem>("api", 1, GetApiName());
m_hud->addItem<hud::HudSamplerCount>("samplers", -1, m_parent);
}
}
@ -1383,4 +1385,9 @@ namespace dxvk {
: VK_FULL_SCREEN_EXCLUSIVE_DEFAULT_EXT;
}
std::string D3D9SwapChainEx::GetApiName() {
return this->GetParent()->IsExtended() ? "D3D9Ex" : "D3D9";
}
}

View File

@ -221,6 +221,8 @@ namespace dxvk {
VkFullScreenExclusiveEXT PickFullscreenMode();
std::string GetApiName();
};
}