Browse Source

Updated debug checks

fsr3.1
Nico de Poel 2 years ago
parent
commit
aca067bff0
  1. 13
      Assets/Scripts/Core/Fsr3UpscalerContext.cs

13
Assets/Scripts/Core/Fsr3UpscalerContext.cs

@ -479,14 +479,14 @@ namespace FidelityFX
Debug.LogError("MotionVectors resource is null");
}
if (!dispatchParams.Output.IsValid)
if (dispatchParams.Exposure.IsValid && (_contextDescription.Flags & Fsr3Upscaler.InitializationFlags.EnableAutoExposure) != 0)
{
Debug.LogError("Output resource is null");
Debug.LogWarning("Exposure resource provided, however auto exposure flag is present");
}
if (dispatchParams.Exposure.IsValid && (_contextDescription.Flags & Fsr3Upscaler.InitializationFlags.EnableAutoExposure) != 0)
if (!dispatchParams.Output.IsValid)
{
Debug.LogWarning("Exposure resource provided, however auto exposure flag is present");
Debug.LogError("Output resource is null");
}
if (Mathf.Abs(dispatchParams.JitterOffset.x) > 1.0f || Mathf.Abs(dispatchParams.JitterOffset.y) > 1.0f)
@ -514,6 +514,11 @@ namespace FidelityFX
Debug.LogWarning("RenderSize contains zero dimension");
}
if (dispatchParams.Sharpness < 0.0f || dispatchParams.Sharpness > 1.0f)
{
Debug.LogWarning("Sharpness contains value outside of expected range [0.0, 1.0]");
}
if (dispatchParams.FrameTimeDelta > 1.0f)
{
Debug.LogWarning("FrameTimeDelta is greater than 1.0f - this value should be seconds (~0.0166 for 60fps)");

Loading…
Cancel
Save