fix for auto mv setting logic

This commit is contained in:
cdozdil
2024-04-11 10:59:43 +03:00
parent a702d3d12a
commit 3240f0ef61
7 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -280,8 +280,8 @@ bool FSR2FeatureDx11::Evaluate(ID3D11DeviceContext* InContext, const NVSDK_NGX_P
{
D3D11_TEXTURE2D_DESC desc;
((ID3D11Texture2D*)paramVelocity)->GetDesc(&desc);
bool lowResMV = desc.Width == params.renderSize.width;
bool lowResMV = desc.Width < DisplayWidth();
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
{
spdlog::warn("FSR2FeatureDx11::Evaluate MotionVectors size and feature init config not matching!!");
@@ -133,7 +133,7 @@ bool FSR2FeatureDx11on12::Evaluate(ID3D11DeviceContext* InDeviceContext, const N
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
{
auto desc = dx11Mv.Dx12Resource->GetDesc();
bool lowResMV = desc.Width == params.renderSize.width;
bool lowResMV = desc.Width < DisplayWidth();
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
{
+1 -1
View File
@@ -107,7 +107,7 @@ bool FSR2FeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N
if (!Config::Instance()->DisplayResolution.has_value())
{
auto desc = paramVelocity->GetDesc();
bool lowResMV = desc.Width == params.renderSize.width;
bool lowResMV = desc.Width < DisplayWidth();
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
{
@@ -131,7 +131,7 @@ bool FSR2FeatureDx11on12_212::Evaluate(ID3D11DeviceContext* InDeviceContext, con
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
{
auto desc = dx11Mv.Dx12Resource->GetDesc();
bool lowResMV = desc.Width == params.renderSize.width;
bool lowResMV = desc.Width < DisplayWidth();
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
{
@@ -101,7 +101,7 @@ bool FSR2FeatureDx12_212::Evaluate(ID3D12GraphicsCommandList* InCommandList, con
if (!Config::Instance()->DisplayResolution.has_value())
{
auto desc = paramVelocity->GetDesc();
bool lowResMV = desc.Width == params.renderSize.width;
bool lowResMV = desc.Width < DisplayWidth();
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
{
+1 -1
View File
@@ -198,7 +198,7 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, const NVSDK
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
{
auto desc = dx11Mv.Dx12Resource->GetDesc();
bool lowResMV = desc.Width == params.inputWidth;
bool lowResMV = desc.Width < DisplayWidth();
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
{
+1 -1
View File
@@ -146,7 +146,7 @@ bool XeSSFeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
{
auto desc = params.pVelocityTexture->GetDesc();
bool lowResMV = desc.Width == params.inputWidth;
bool lowResMV = desc.Width < DisplayWidth();
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
{