added input api info to menu

This commit is contained in:
cdozdil
2024-10-23 17:50:02 +03:00
parent e995490154
commit 4d3eb9a7ae
5 changed files with 18 additions and 3 deletions
+3
View File
@@ -243,6 +243,9 @@ public:
float ScreenWidth = 800.0;
float ScreenHeight = 450.0;
std::string setInputApiName;
std::string currentInputApiName;
IFeature* CurrentFeature = nullptr;
bool Reload(std::filesystem::path iniPath);
+7
View File
@@ -854,6 +854,13 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D12_EvaluateFeature(ID3D12GraphicsCom
auto evaluateStart = GetTicks();
if (Config::Instance()->setInputApiName.length() == 0)
Config::Instance()->currentInputApiName = "DLSS";
else
Config::Instance()->currentInputApiName = Config::Instance()->setInputApiName;
Config::Instance()->setInputApiName.clear();
if (!InCmdList)
{
LOG_ERROR("InCmdList is null!!!");
+1 -1
View File
@@ -82,7 +82,7 @@
<IncludePath>$(SolutionDir)external\vulkan\include;$(SolutionDir)external\nvngx_dlss_sdk;$(SolutionDir)external\xess\inc\xess;$(SolutionDir)external\FidelityFX-SDK\ffx-api\include\ffx_api;$(SolutionDir)external\simpleini;$(SolutionDir)external\unordered_dense\include;$(SolutionDir)external\spdlog\include;$(IncludePath)</IncludePath>
<LibraryPath>$(ProjectDir)fsr2\lib;$(ProjectDir)fsr2_212\lib;$(ProjectDir)fsr31\lib;$(ProjectDir)vulkan;$(ProjectDir)d3dx;$(ProjectDir)detours;$(SolutionDir)external\xess\lib;$(LibraryPath)</LibraryPath>
<TargetName>dxgi</TargetName>
<OutDir>D:\Folders\Games\Deep Rock Galactic\FSD\Binaries\Win64\</OutDir>
<OutDir>D:\Folders\Games\Cyberpunk 2077\bin\x64\</OutDir>
<IntDir>.\x64\Debug</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+2
View File
@@ -279,6 +279,8 @@ XESS_API xess_result_t xessD3D12Execute(xess_context_handle_t hContext, ID3D12Gr
params->Set(NVSDK_NGX_Parameter_MotionVectors, pExecParams->pVelocityTexture);
params->Set(NVSDK_NGX_Parameter_Output, pExecParams->pOutputTexture);
Config::Instance()->setInputApiName = "XeSS";
if (NVSDK_NGX_D3D12_EvaluateFeature(pCommandList, handle, params, nullptr) == NVSDK_NGX_Result_Success)
return XESS_RESULT_SUCCESS;
+5 -2
View File
@@ -841,7 +841,10 @@ void ImGuiCommon::RenderMenu()
break;
case NVNGX_DX12:
ImGui::Text("DirectX 12 %s- %s (%d.%d.%d)", Config::Instance()->IsRunningOnDXVK ? "(DXVK)" : "", Config::Instance()->CurrentFeature->Name(), Config::Instance()->CurrentFeature->Version().major, Config::Instance()->CurrentFeature->Version().minor, Config::Instance()->CurrentFeature->Version().patch);
ImGui::Text("DirectX 12 %s- %s (%d.%d.%d)", Config::Instance()->IsRunningOnDXVK ? "(DXVK) " : "", Config::Instance()->CurrentFeature->Name(), Config::Instance()->CurrentFeature->Version().major, Config::Instance()->CurrentFeature->Version().minor, Config::Instance()->CurrentFeature->Version().patch);
ImGui::SameLine(0.0f, 6.0f);
ImGui::Text("Source Api: %s", Config::Instance()->currentInputApiName.c_str());
if (Config::Instance()->CurrentFeature->Name() != "DLSSD")
AddDx12Backends(&currentBackend, &currentBackendName);
@@ -849,7 +852,7 @@ void ImGuiCommon::RenderMenu()
break;
default:
ImGui::Text("Vulkan %s- %s (%d.%d.%d)", Config::Instance()->IsRunningOnDXVK ? "(DXVK)" : "", Config::Instance()->CurrentFeature->Name(), Config::Instance()->CurrentFeature->Version().major, Config::Instance()->CurrentFeature->Version().minor, Config::Instance()->CurrentFeature->Version().patch);
ImGui::Text("Vulkan %s- %s (%d.%d.%d)", Config::Instance()->IsRunningOnDXVK ? "(DXVK) " : "", Config::Instance()->CurrentFeature->Name(), Config::Instance()->CurrentFeature->Version().major, Config::Instance()->CurrentFeature->Version().minor, Config::Instance()->CurrentFeature->Version().patch);
if (Config::Instance()->CurrentFeature->Name() != "DLSSD")
AddVulkanBackends(&currentBackend, &currentBackendName);