Browse Source

ExecuteCommandBuffer needs to be done last, otherwise the commands to release temporary RTs won't be executed and they'll be cleared on the next frame. Oops.

mac-autoexp
Nico de Poel 3 years ago
parent
commit
84c02a1110
  1. 4
      Assets/Scripts/Fsr2Context.cs

4
Assets/Scripts/Fsr2Context.cs

@ -187,9 +187,9 @@ namespace FidelityFX
_resourceFrameIndex = (_resourceFrameIndex + 1) % MaxQueuedFrames;
Graphics.ExecuteCommandBuffer(_commandBuffer);
Fsr2Pipeline.UnregisterResources(_commandBuffer);
Graphics.ExecuteCommandBuffer(_commandBuffer);
}
public void GenerateReactiveMask(Fsr2.GenerateReactiveDescription dispatchParams)

Loading…
Cancel
Save