added auto autoexposure :)

This commit is contained in:
cdozdil
2024-04-04 17:16:17 +03:00
parent 2ad9b34f05
commit 0c85844c2a
5 changed files with 25 additions and 1 deletions
@@ -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!");
@@ -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");
}
@@ -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,
@@ -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,
+6 -1
View File
@@ -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,