mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-26 08:06:33 +00:00
added auto autoexposure :)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user