From 166d19962d9433db99d6fb0a0e8f57d54334d7d3 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Sun, 19 Apr 2026 21:25:29 +0200 Subject: [PATCH] Clean up MV Scale query --- .../upscalers/fsr2/FSR2Feature_Dx11.cpp | 16 ++++------------ .../upscalers/fsr2/FSR2Feature_Dx11On12.cpp | 14 +++++++------- .../upscalers/fsr2/FSR2Feature_Dx12.cpp | 18 +++++------------- OptiScaler/upscalers/fsr2/FSR2Feature_Vk.cpp | 16 ++++------------ .../fsr2_212/FSR2Feature_Dx11On12_212.cpp | 17 +++++------------ .../fsr2_212/FSR2Feature_Dx12_212.cpp | 16 ++++------------ .../fsr2_212/FSR2Feature_VkOnDx12_212.cpp | 17 +++++------------ .../upscalers/fsr2_212/FSR2Feature_Vk_212.cpp | 16 ++++------------ .../upscalers/fsr31/FSR31Feature_Dx11.cpp | 16 ++++------------ .../upscalers/fsr31/FSR31Feature_Dx11On12.cpp | 17 +++++------------ .../upscalers/fsr31/FSR31Feature_Dx12.cpp | 16 ++++------------ .../upscalers/fsr31/FSR31Feature_Vk.cpp | 16 ++++------------ .../upscalers/fsr31/FSR31Feature_VkOn12.cpp | 19 +++++++------------ 13 files changed, 62 insertions(+), 152 deletions(-) diff --git a/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11.cpp b/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11.cpp index 8638b968..ea500eff 100644 --- a/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11.cpp +++ b/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11.cpp @@ -492,21 +492,13 @@ bool FSR2FeatureDx11::Evaluate(ID3D11DeviceContext* InContext, NVSDK_NGX_Paramet _accessToReactiveMask = paramReactiveMask != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (DepthInverted()) diff --git a/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11On12.cpp b/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11On12.cpp index 89ceeb8f..40d542c6 100644 --- a/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11On12.cpp +++ b/OptiScaler/upscalers/fsr2/FSR2Feature_Dx11On12.cpp @@ -272,15 +272,15 @@ bool FSR2FeatureDx11on12::Evaluate(ID3D11DeviceContext* InDeviceContext, NVSDK_N _hasTM = params.transparencyAndComposition.resource != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) != NVSDK_NGX_Result_Success || - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) != NVSDK_NGX_Result_Success) + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != + NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) + { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; + } if (DepthInverted()) { diff --git a/OptiScaler/upscalers/fsr2/FSR2Feature_Dx12.cpp b/OptiScaler/upscalers/fsr2/FSR2Feature_Dx12.cpp index e915a687..24e149f2 100644 --- a/OptiScaler/upscalers/fsr2/FSR2Feature_Dx12.cpp +++ b/OptiScaler/upscalers/fsr2/FSR2Feature_Dx12.cpp @@ -253,24 +253,16 @@ bool FSR2FeatureDx12::EvaluateInternal(ID3D12GraphicsCommandList* InCommandList, _accessToReactiveMask = paramReactiveMask != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } - if (!Config::Instance()->FsrUseFsrInputValues.value_or_default() || + if (!cfg.FsrUseFsrInputValues.value_or_default() || InParameters->Get("FSR.cameraNear", ¶ms.cameraNear) != NVSDK_NGX_Result_Success) { if (DepthInverted()) diff --git a/OptiScaler/upscalers/fsr2/FSR2Feature_Vk.cpp b/OptiScaler/upscalers/fsr2/FSR2Feature_Vk.cpp index 574ca14b..d45c47c0 100644 --- a/OptiScaler/upscalers/fsr2/FSR2Feature_Vk.cpp +++ b/OptiScaler/upscalers/fsr2/FSR2Feature_Vk.cpp @@ -466,21 +466,13 @@ bool FSR2FeatureVk::Evaluate(VkCommandBuffer InCmdBuffer, NVSDK_NGX_Parameter* I _accessToReactiveMask = paramReactiveMask != nullptr || paramReactiveMask2 != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (rcasEnabled) diff --git a/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx11On12_212.cpp b/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx11On12_212.cpp index d3cd1dbb..533328d9 100644 --- a/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx11On12_212.cpp +++ b/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx11On12_212.cpp @@ -267,21 +267,14 @@ bool FSR2FeatureDx11on12_212::Evaluate(ID3D11DeviceContext* InDeviceContext, NVS _hasTM = params.transparencyAndComposition.resource != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != + NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (DepthInverted()) diff --git a/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx12_212.cpp b/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx12_212.cpp index 7a6e1dc6..36403ea8 100644 --- a/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx12_212.cpp +++ b/OptiScaler/upscalers/fsr2_212/FSR2Feature_Dx12_212.cpp @@ -259,21 +259,13 @@ bool FSR2FeatureDx12_212::EvaluateInternal(ID3D12GraphicsCommandList* InCommandL _accessToReactiveMask = paramReactiveMask != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } LOG_DEBUG("Sharpness: {0}", params.sharpness); diff --git a/OptiScaler/upscalers/fsr2_212/FSR2Feature_VkOnDx12_212.cpp b/OptiScaler/upscalers/fsr2_212/FSR2Feature_VkOnDx12_212.cpp index 916d35d5..429ca7ad 100644 --- a/OptiScaler/upscalers/fsr2_212/FSR2Feature_VkOnDx12_212.cpp +++ b/OptiScaler/upscalers/fsr2_212/FSR2Feature_VkOnDx12_212.cpp @@ -385,21 +385,14 @@ bool FSR2FeatureVkOnDx12_212::Evaluate(VkCommandBuffer InCmdBuffer, NVSDK_NGX_Pa _hasTM = params.transparencyAndComposition.resource != nullptr; _hasOutput = params.output.resource != nullptr; - // For FSR 4 - resolve typeless formats - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != + NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (Config::Instance()->FsrCameraNear.has_value() || diff --git a/OptiScaler/upscalers/fsr2_212/FSR2Feature_Vk_212.cpp b/OptiScaler/upscalers/fsr2_212/FSR2Feature_Vk_212.cpp index 7193a179..b583946d 100644 --- a/OptiScaler/upscalers/fsr2_212/FSR2Feature_Vk_212.cpp +++ b/OptiScaler/upscalers/fsr2_212/FSR2Feature_Vk_212.cpp @@ -489,21 +489,13 @@ bool FSR2FeatureVk212::Evaluate(VkCommandBuffer InCmdBuffer, NVSDK_NGX_Parameter _accessToReactiveMask = paramReactiveMask != nullptr || paramReactiveMask2 != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (rcasEnabled) diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp index 1e60d15f..828e910f 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp @@ -406,21 +406,13 @@ bool FSR31FeatureDx11::Evaluate(ID3D11DeviceContext* DeviceContext, NVSDK_NGX_Pa _accessToReactiveMask = paramReactiveMask != nullptr; _hasOutput = params.upscaleOutput.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } LOG_DEBUG("Sharpness: {0}", params.sharpness); diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp index 820347ec..9695c740 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp @@ -310,21 +310,14 @@ bool FSR31FeatureDx11on12::Evaluate(ID3D11DeviceContext* InDeviceContext, NVSDK_ ffxResolveTypelessFormat(params.output.description.format); } - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != + NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (DepthInverted()) diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp index 53ae8690..ad51c2ce 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp @@ -309,21 +309,13 @@ bool FSR31FeatureDx12::EvaluateInternal(ID3D12GraphicsCommandList* InCommandList ffxResolveTypelessFormat(params.output.description.format); } - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } LOG_DEBUG("Sharpness: {0}", params.sharpness); diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp index 7b0db8b2..b5399687 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp @@ -605,21 +605,13 @@ bool FSR31FeatureVk::Evaluate(VkCommandBuffer InCmdBuffer, NVSDK_NGX_Parameter* _accessToReactiveMask = paramReactiveMask != nullptr || paramReactiveMask2 != nullptr; _hasOutput = params.output.resource != nullptr; - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (rcasEnabled) diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_VkOn12.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_VkOn12.cpp index 934d5ceb..85237c30 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_VkOn12.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_VkOn12.cpp @@ -287,7 +287,8 @@ bool FSR31FeatureVkOn12::Evaluate(VkCommandBuffer InCmdBuffer, NVSDK_NGX_Paramet _hasTM = params.transparencyAndComposition.resource != nullptr; _hasOutput = params.output.resource != nullptr; - // For FSR 4 - resolve typeless formats + // For FSR 4 as it seems to be missing some conversions from typeless + // transparencyAndComposition and exposure might be unnecessary here if (Version().major >= 4) { ffxResolveTypelessFormat(params.color.description.format); @@ -298,20 +299,14 @@ bool FSR31FeatureVkOn12::Evaluate(VkCommandBuffer InCmdBuffer, NVSDK_NGX_Paramet ffxResolveTypelessFormat(params.output.description.format); } - float MVScaleX = 1.0f; - float MVScaleY = 1.0f; + params.motionVectorScale.x = 1.0f; + params.motionVectorScale.y = 1.0f; - if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, &MVScaleX) == NVSDK_NGX_Result_Success && - InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, &MVScaleY) == NVSDK_NGX_Result_Success) - { - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; - } - else + if (InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_X, ¶ms.motionVectorScale.x) != + NVSDK_NGX_Result_Success || + InParameters->Get(NVSDK_NGX_Parameter_MV_Scale_Y, ¶ms.motionVectorScale.y) != NVSDK_NGX_Result_Success) { LOG_WARN("Can't get motion vector scales!"); - params.motionVectorScale.x = MVScaleX; - params.motionVectorScale.y = MVScaleY; } if (DepthInverted())