From 9e9a796c91a1706f4c3fefec62b9ab1adbb6953c Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Sat, 20 Jul 2024 01:19:55 +0200 Subject: [PATCH] Small simplification --- Assets/Scripts/Fsr3UpscalerImageEffect.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Assets/Scripts/Fsr3UpscalerImageEffect.cs b/Assets/Scripts/Fsr3UpscalerImageEffect.cs index 08b13d8..ff57391 100644 --- a/Assets/Scripts/Fsr3UpscalerImageEffect.cs +++ b/Assets/Scripts/Fsr3UpscalerImageEffect.cs @@ -330,6 +330,7 @@ namespace FidelityFX _dispatchDescription.MotionVectorScale.x = -scaledRenderSize.x; _dispatchDescription.MotionVectorScale.y = -scaledRenderSize.y; _dispatchDescription.RenderSize = scaledRenderSize; + _dispatchDescription.UpscaleSize = _displaySize; _dispatchDescription.FrameTimeDelta = Time.unscaledDeltaTime; _dispatchDescription.CameraNear = _renderCamera.nearClipPlane; _dispatchDescription.CameraFar = _renderCamera.farClipPlane; @@ -395,9 +396,6 @@ namespace FidelityFX _renderCamera.rect = _originalRect; _renderCamera.ResetProjectionMatrix(); - // Update the input resource descriptions - _dispatchDescription.UpscaleSize = new Vector2Int(_renderCamera.pixelWidth, _renderCamera.pixelHeight); - _dispatchCommandBuffer.Clear(); if (autoGenerateReactiveMask)