From 1e6ad0b3723fddbade68c2bc01e7bcfb694cd49b Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 28 Jan 2020 13:15:02 +0100 Subject: [PATCH] [d3d9] Re-introduce client API HUD item --- src/d3d9/d3d9_swapchain.cpp | 9 ++++++++- src/d3d9/d3d9_swapchain.h | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index c307c1c2..65bcaccf 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -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("api", 1, GetApiName()); m_hud->addItem("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"; + } + } \ No newline at end of file diff --git a/src/d3d9/d3d9_swapchain.h b/src/d3d9/d3d9_swapchain.h index c61eddb7..00dd6e3b 100644 --- a/src/d3d9/d3d9_swapchain.h +++ b/src/d3d9/d3d9_swapchain.h @@ -221,6 +221,8 @@ namespace dxvk { VkFullScreenExclusiveEXT PickFullscreenMode(); + std::string GetApiName(); + }; } \ No newline at end of file