diff --git a/CyberXeSS/backends/IFeature_Dx11wDx12.cpp b/CyberXeSS/backends/IFeature_Dx11wDx12.cpp index 70667ee6..b742fb59 100644 --- a/CyberXeSS/backends/IFeature_Dx11wDx12.cpp +++ b/CyberXeSS/backends/IFeature_Dx11wDx12.cpp @@ -418,7 +418,11 @@ bool IFeature_Dx11wDx12::ProcessDx11Textures(const NVSDK_NGX_Parameter* InParame return false; } else + { spdlog::warn("IFeature_Dx11wDx12::ProcessDx11Textures AutoExposure disabled but ExposureTexture is not exist, it may cause problems!!"); + Config::Instance()->AutoExposure = true; + Config::Instance()->changeBackend = true; + } } else spdlog::debug("IFeature_Dx11wDx12::ProcessDx11Textures AutoExposure enabled!"); diff --git a/CyberXeSS/backends/fsr2/FSR2Feature_Dx11.cpp b/CyberXeSS/backends/fsr2/FSR2Feature_Dx11.cpp index c8d8f45b..072cd56a 100644 --- a/CyberXeSS/backends/fsr2/FSR2Feature_Dx11.cpp +++ b/CyberXeSS/backends/fsr2/FSR2Feature_Dx11.cpp @@ -325,7 +325,12 @@ bool FSR2FeatureDx11::Evaluate(ID3D11DeviceContext* InContext, const NVSDK_NGX_P if (paramExp) spdlog::debug("FSR2FeatureDx11::Evaluate ExposureTexture exist.."); else + { spdlog::debug("FSR2FeatureDx11::Evaluate AutoExposure disabled but ExposureTexture is not exist, it may cause problems!!"); + Config::Instance()->AutoExposure = true; + Config::Instance()->changeBackend = true; + return true; + } params.exposure = ffxGetResourceDX11(&_context, paramExp, (wchar_t*)L"FSR2_Exposure"); } diff --git a/CyberXeSS/backends/fsr2/FSR2Feature_Dx12.cpp b/CyberXeSS/backends/fsr2/FSR2Feature_Dx12.cpp index 3cacc572..7f857acc 100644 --- a/CyberXeSS/backends/fsr2/FSR2Feature_Dx12.cpp +++ b/CyberXeSS/backends/fsr2/FSR2Feature_Dx12.cpp @@ -151,7 +151,12 @@ bool FSR2FeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N if (paramExp) spdlog::debug("FSR2FeatureDx12::Evaluate ExposureTexture exist.."); else + { spdlog::debug("FSR2FeatureDx12::Evaluate AutoExposure disabled but ExposureTexture is not exist, it may cause problems!!"); + Config::Instance()->AutoExposure = true; + Config::Instance()->changeBackend = true; + return true; + } if (Config::Instance()->ExposureResourceBarrier.has_value()) ResourceBarrier(InCommandList, paramExp, diff --git a/CyberXeSS/backends/fsr2_212/FSR2Feature_Dx12_212.cpp b/CyberXeSS/backends/fsr2_212/FSR2Feature_Dx12_212.cpp index 63da9541..08fb9829 100644 --- a/CyberXeSS/backends/fsr2_212/FSR2Feature_Dx12_212.cpp +++ b/CyberXeSS/backends/fsr2_212/FSR2Feature_Dx12_212.cpp @@ -153,7 +153,12 @@ bool FSR2FeatureDx12_212::Evaluate(ID3D12GraphicsCommandList* InCommandList, con if (paramExp) spdlog::debug("FSR2FeatureDx12_212::Evaluate ExposureTexture exist.."); else + { spdlog::debug("FSR2FeatureDx12_212::Evaluate AutoExposure disabled but ExposureTexture is not exist, it may cause problems!!"); + Config::Instance()->AutoExposure = true; + Config::Instance()->changeBackend = true; + return true; + } if (Config::Instance()->ExposureResourceBarrier.has_value()) ResourceBarrier(InCommandList, paramExp, diff --git a/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp b/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp index 21cceeca..1527c422 100644 --- a/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp +++ b/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp @@ -216,7 +216,12 @@ bool XeSSFeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N if (params.pExposureScaleTexture) spdlog::debug("XeSSFeatureDx12::Evaluate ExposureTexture exist.."); else - spdlog::debug("XeSSFeatureDx12::Evaluate AutoExposure disabled but ExposureTexture is not exist, it may cause problems!!"); + { + spdlog::warn("XeSSFeatureDx12::Evaluate AutoExposure disabled but ExposureTexture is not exist, it may cause problems!!"); + Config::Instance()->AutoExposure = true; + Config::Instance()->changeBackend = true; + return true; + } if (Config::Instance()->ExposureResourceBarrier.has_value()) ResourceBarrier(InCommandList, params.pExposureScaleTexture,