Browse Source

Don't validate input/output resources on reset, so the application has a way to prevent error messages when re-enabling a camera.

In this situation, the previous frame won't have bound the required resources, leading to those errors. Now, if the application calls Reset() after re-enabling the camera, the error messages won't show.
mac-autoexp
Nico de Poel 3 years ago
parent
commit
38cc3a83fd
  1. 2
      Assets/Scripts/Core/Fsr2Context.cs

2
Assets/Scripts/Core/Fsr2Context.cs

@ -389,7 +389,7 @@ namespace FidelityFX
private void DebugCheckDispatch(Fsr2.DispatchDescription dispatchParams) private void DebugCheckDispatch(Fsr2.DispatchDescription dispatchParams)
{ {
// Global texture binding may be queued as part of the command list, which is why we check these after running the process at least once // Global texture binding may be queued as part of the command list, which is why we check these after running the process at least once
if (!_firstExecution)
if (!_firstExecution && !dispatchParams.Reset)
{ {
if (!dispatchParams.Color.HasValue && Shader.GetGlobalTexture(Fsr2ShaderIDs.SrvInputColor) == null) if (!dispatchParams.Color.HasValue && Shader.GetGlobalTexture(Fsr2ShaderIDs.SrvInputColor) == null)
{ {

Loading…
Cancel
Save