mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-27 16:46:36 +00:00
added fsr inputs info
This commit is contained in:
@@ -818,6 +818,8 @@ void HookFSR2ExeInputs()
|
||||
if (o_ffxGetDeviceDX12 != nullptr)
|
||||
DetourAttach(&(PVOID&)o_ffxGetDeviceDX12, o_ffxGetDeviceDX12);
|
||||
|
||||
Config::Instance()->fsrHooks = true;
|
||||
|
||||
DetourTransactionCommit();
|
||||
}
|
||||
|
||||
@@ -877,6 +879,8 @@ void HookFSR2Dx12Inputs(HMODULE module)
|
||||
if (o_ffxGetDeviceDX12 != nullptr)
|
||||
DetourAttach(&(PVOID&)o_ffxGetDeviceDX12, hk_ffxGetDeviceDX12);
|
||||
|
||||
Config::Instance()->fsrHooks = true;
|
||||
|
||||
DetourTransactionCommit();
|
||||
}
|
||||
|
||||
@@ -930,6 +934,8 @@ void HookFSR2Inputs(HMODULE module)
|
||||
if (o_ffxFsr2GetRenderResolutionFromQualityMode_Dx12 != nullptr)
|
||||
DetourAttach(&(PVOID&)o_ffxFsr2GetRenderResolutionFromQualityMode_Dx12, ffxFsr2GetRenderResolutionFromQualityMode_Dx12);
|
||||
|
||||
Config::Instance()->fsrHooks = true;
|
||||
|
||||
DetourTransactionCommit();
|
||||
}
|
||||
|
||||
|
||||
@@ -443,6 +443,8 @@ void HookFSR3ExeInputs()
|
||||
if (o_ffxFsr3UpscalerResourceIsNull != nullptr)
|
||||
DetourAttach(&(PVOID&)o_ffxFsr3UpscalerResourceIsNull, ffxFsr3UpscalerResourceIsNull);
|
||||
|
||||
Config::Instance()->fsrHooks = true;
|
||||
|
||||
DetourTransactionCommit();
|
||||
}
|
||||
|
||||
@@ -490,6 +492,8 @@ void HookFSR3Dx12Inputs(HMODULE module)
|
||||
if (o_ffxGetFSR3ResourceDX12 != nullptr)
|
||||
DetourAttach(&(PVOID&)o_ffxGetFSR3ResourceDX12, hk_ffxFsr3GetResourceDX12);
|
||||
|
||||
Config::Instance()->fsrHooks = true;
|
||||
|
||||
DetourTransactionCommit();
|
||||
}
|
||||
|
||||
@@ -551,6 +555,8 @@ void HookFSR3Inputs(HMODULE module)
|
||||
if (o_ffxFsr3UpscalerResourceIsNull != nullptr)
|
||||
DetourAttach(&(PVOID&)o_ffxFsr3UpscalerResourceIsNull, ffxFsr3UpscalerResourceIsNull);
|
||||
|
||||
Config::Instance()->fsrHooks = true;
|
||||
|
||||
DetourTransactionCommit();
|
||||
}
|
||||
|
||||
|
||||
@@ -94,6 +94,8 @@ public:
|
||||
if (_D3D12_Query != nullptr)
|
||||
DetourAttach(&(PVOID&)_D3D12_Query, ffxQuery_Dx12);
|
||||
|
||||
Config::Instance()->fsrHooks = true;
|
||||
|
||||
DetourTransactionCommit();
|
||||
}
|
||||
|
||||
|
||||
@@ -838,9 +838,11 @@ void ImGuiCommon::RenderMenu()
|
||||
if (Config::Instance()->nvngxExist || Config::Instance()->libxessExist)
|
||||
{
|
||||
ImGui::Spacing();
|
||||
ImGui::Text("Please select %s%s%s as upscaler\nfrom game options and enter the game\nto enable upscaler settings.\n",
|
||||
Config::Instance()->nvngxExist ? "DLSS" : "",
|
||||
Config::Instance()->nvngxExist && Config::Instance()->libxessExist ? " or " : "",
|
||||
ImGui::Text("Please select %s%s%s%s%s as upscaler\nfrom game options and enter the game\nto enable upscaler settings.\n",
|
||||
Config::Instance()->fsrHooks ? "FSR" : "",
|
||||
Config::Instance()->fsrHooks && (Config::Instance()->nvngxExist || Config::Instance()->IsRunningOnNvidia) ? " or " : "",
|
||||
(Config::Instance()->nvngxExist || Config::Instance()->IsRunningOnNvidia) ? "DLSS" : "",
|
||||
((Config::Instance()->nvngxExist || Config::Instance()->IsRunningOnNvidia) || Config::Instance()->fsrHooks) && Config::Instance()->libxessExist ? " or " : "",
|
||||
Config::Instance()->libxessExist ? "XeSS" : "");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user