mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-07-08 08:22:05 +00:00
Added subrect base values for XeSS inputs and upscaler
This commit is contained in:
@@ -283,6 +283,14 @@ XESS_API xess_result_t xessD3D12Execute(xess_context_handle_t hContext, ID3D12Gr
|
||||
params->Set(NVSDK_NGX_Parameter_Color, pExecParams->pColorTexture);
|
||||
params->Set(NVSDK_NGX_Parameter_MotionVectors, pExecParams->pVelocityTexture);
|
||||
params->Set(NVSDK_NGX_Parameter_Output, pExecParams->pOutputTexture);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Input_Color_Subrect_Base_X, pExecParams->inputColorBase.x);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Input_Color_Subrect_Base_Y, pExecParams->inputColorBase.y);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Input_Depth_Subrect_Base_X, pExecParams->inputDepthBase.x);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Input_Depth_Subrect_Base_Y, pExecParams->inputDepthBase.y);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Input_MV_SubrectBase_X, pExecParams->inputMotionVectorBase.x);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Input_MV_SubrectBase_Y, pExecParams->inputMotionVectorBase.y);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Output_Subrect_Base_X, pExecParams->outputColorBase.x);
|
||||
params->Set(NVSDK_NGX_Parameter_DLSS_Output_Subrect_Base_Y, pExecParams->outputColorBase.y);
|
||||
|
||||
State::Instance().setInputApiName = "XeSS";
|
||||
|
||||
|
||||
@@ -309,6 +309,8 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, NVSDK_NGX_P
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Input_Depth_Subrect_Base_Y, ¶ms.inputDepthBase.y);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Input_MV_SubrectBase_X, ¶ms.inputMotionVectorBase.x);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Input_MV_SubrectBase_Y, ¶ms.inputMotionVectorBase.y);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Output_Subrect_Base_X, ¶ms.outputColorBase.x);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Output_Subrect_Base_Y, ¶ms.outputColorBase.y);
|
||||
|
||||
// Execute xess
|
||||
LOG_DEBUG("Executing!!");
|
||||
|
||||
@@ -302,6 +302,8 @@ bool XeSSFeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, NVSDK_N
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Input_Depth_Subrect_Base_Y, ¶ms.inputDepthBase.y);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Input_MV_SubrectBase_X, ¶ms.inputMotionVectorBase.x);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Input_MV_SubrectBase_Y, ¶ms.inputMotionVectorBase.y);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Output_Subrect_Base_X, ¶ms.outputColorBase.x);
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Output_Subrect_Base_Y, ¶ms.outputColorBase.y);
|
||||
|
||||
LOG_DEBUG("Executing!!");
|
||||
xessResult = XeSSProxy::D3D12Execute()(_xessContext, InCommandList, ¶ms);
|
||||
|
||||
Reference in New Issue
Block a user