diff --git a/OptiScaler/inputs/FfxApi_Dx12.cpp b/OptiScaler/inputs/FfxApi_Dx12.cpp index 5d08d259..f7b01ff5 100644 --- a/OptiScaler/inputs/FfxApi_Dx12.cpp +++ b/OptiScaler/inputs/FfxApi_Dx12.cpp @@ -364,6 +364,8 @@ ffxReturnCode_t ffxDispatch_Dx12(ffxContext* context, ffxDispatchDescHeader* des params->Set("FSR.transparencyAndComposition", dispatchDesc->transparencyAndComposition.resource); params->Set("FSR.reactive", dispatchDesc->reactive.resource); params->Set(NVSDK_NGX_Parameter_Sharpness, dispatchDesc->sharpness); + params->Set("FSR.upscaleSize.width", dispatchDesc->upscaleSize.width); + params->Set("FSR.upscaleSize.height", dispatchDesc->upscaleSize.height); LOG_DEBUG("handle: {:X}, internalResolution: {}x{}", handle->Id, dispatchDesc->renderSize.width, dispatchDesc->renderSize.height); diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp index 8adddd3f..7f351e24 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11.cpp @@ -444,6 +444,9 @@ bool FSR31FeatureDx11::Evaluate(ID3D11DeviceContext* DeviceContext, NVSDK_NGX_Pa LOG_WARN("Velocity configure result: {}", (UINT)result); } + InParameters->Get("FSR.upscaleSize.width", ¶ms.upscaleSize.width); + InParameters->Get("FSR.upscaleSize.height", ¶ms.upscaleSize.height); + LOG_DEBUG("Dispatch!!"); auto result = ffxFsr3ContextDispatchUpscale(&_upscalerContext, ¶ms); diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp index a929fbab..09e293db 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx11On12.cpp @@ -339,6 +339,9 @@ bool FSR31FeatureDx11on12::Evaluate(ID3D11DeviceContext* InDeviceContext, NVSDK_ LOG_WARN("Velocity configure result: {}", (UINT)result); } + InParameters->Get("FSR.upscaleSize.width", ¶ms.upscaleSize.width); + InParameters->Get("FSR.upscaleSize.height", ¶ms.upscaleSize.height); + LOG_DEBUG("Dispatch!!"); auto ffxresult = FfxApiProxy::D3D12_Dispatch()(&_context, ¶ms.header); diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp index 1643cc2b..73d3ace8 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Dx12.cpp @@ -390,6 +390,9 @@ bool FSR31FeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, NVSDK_ LOG_WARN("Velocity configure result: {}", (UINT)result); } + InParameters->Get("FSR.upscaleSize.width", ¶ms.upscaleSize.width); + InParameters->Get("FSR.upscaleSize.height", ¶ms.upscaleSize.height); + LOG_DEBUG("Dispatch!!"); auto result = FfxApiProxy::D3D12_Dispatch()(&_context, ¶ms.header); diff --git a/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp b/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp index 399ce678..d65f5d46 100644 --- a/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp +++ b/OptiScaler/upscalers/fsr31/FSR31Feature_Vk.cpp @@ -542,6 +542,9 @@ bool FSR31FeatureVk::Evaluate(VkCommandBuffer InCmdBuffer, NVSDK_NGX_Parameter* LOG_WARN("Velocity configure result: {}", (UINT)result); } + InParameters->Get("FSR.upscaleSize.width", ¶ms.upscaleSize.width); + InParameters->Get("FSR.upscaleSize.height", ¶ms.upscaleSize.height); + LOG_DEBUG("Dispatch!!"); auto result = FfxApiProxy::VULKAN_Dispatch()(&_context, ¶ms.header);