Fix FSR4 debug view (now works)

This commit is contained in:
cdozdil
2025-10-10 00:06:32 +03:00
parent bb284d86ba
commit 422276ad34
2 changed files with 20 additions and 0 deletions
@@ -184,6 +184,16 @@ bool FSR31FeatureDx11on12::Evaluate(ID3D11DeviceContext* InDeviceContext, NVSDK_
params.sharpness = _sharpness;
}
// Force enable RCAS when in FSR4 debug view mode
// it crashes when sharpening is disabled
// Debug view expects RCAS output (now sure why)
if (Version() >= feature_version { 4, 0, 2 } && Config::Instance()->FsrDebugView.value_or_default() &&
Config::Instance()->Fsr4EnableDebugView.value_or_default() && !params.enableSharpening)
{
params.enableSharpening = true;
params.sharpness = 0.0f;
}
unsigned int reset;
InParameters->Get(NVSDK_NGX_Parameter_Reset, &reset);
params.reset = (reset == 1);
@@ -99,6 +99,16 @@ bool FSR31FeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, NVSDK_
params.sharpness = _sharpness;
}
// Force enable RCAS when in FSR4 debug view mode
// it crashes when sharpening is disabled
// Debug view expects RCAS output (now sure why)
if (Version() >= feature_version { 4, 0, 2 } && Config::Instance()->FsrDebugView.value_or_default() &&
Config::Instance()->Fsr4EnableDebugView.value_or_default() && !params.enableSharpening)
{
params.enableSharpening = true;
params.sharpness = 0.0f;
}
LOG_DEBUG("Jitter Offset: {0}x{1}", params.jitterOffset.x, params.jitterOffset.y);
unsigned int reset;