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:
parent
38ad868214
commit
1e6ad0b372
@ -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";
|
||||
}
|
||||
|
||||
}
|
@ -221,6 +221,8 @@ namespace dxvk {
|
||||
|
||||
VkFullScreenExclusiveEXT PickFullscreenMode();
|
||||
|
||||
std::string GetApiName();
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user