From 38cc3a83fdf30e8c9218e6d58e9f7ef3e5c5a631 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Thu, 30 Mar 2023 12:06:34 +0200 Subject: [PATCH] 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. --- Assets/Scripts/Core/Fsr2Context.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Core/Fsr2Context.cs b/Assets/Scripts/Core/Fsr2Context.cs index 8feee01..4b5ce0e 100644 --- a/Assets/Scripts/Core/Fsr2Context.cs +++ b/Assets/Scripts/Core/Fsr2Context.cs @@ -389,7 +389,7 @@ namespace FidelityFX 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 - if (!_firstExecution) + if (!_firstExecution && !dispatchParams.Reset) { if (!dispatchParams.Color.HasValue && Shader.GetGlobalTexture(Fsr2ShaderIDs.SrvInputColor) == null) {