|
|
|
@ -1188,17 +1188,20 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
|
|
|
|
|
// Set the upscaler's output to full display resolution, as well as for all following post-processing effects
|
|
|
|
context.SetRenderSize(superResolution.displaySize); |
|
|
|
RuntimeUtilities.EnableDynamicResolution = false; |
|
|
|
|
|
|
|
|
|
|
|
var fsrTarget = m_TargetPool.Get(); |
|
|
|
var finalDestination = context.destination; |
|
|
|
RuntimeUtilities.EnableDynamicResolution = false; |
|
|
|
context.GetScreenSpaceTemporaryRT(cmd, fsrTarget, 0, context.sourceFormat, enableRandomWrite: true); |
|
|
|
context.destination = fsrTarget; |
|
|
|
superResolution.colorOpaqueOnly = m_opaqueOnly; |
|
|
|
RuntimeUtilities.EnableDynamicResolution = true; |
|
|
|
superResolution.Render(context); |
|
|
|
context.source = fsrTarget; |
|
|
|
context.destination = finalDestination; |
|
|
|
|
|
|
|
RuntimeUtilities.EnableDynamicResolution = false; |
|
|
|
|
|
|
|
if (lastTarget > -1) |
|
|
|
cmd.ReleaseTemporaryRT(lastTarget); |
|
|
|
|
|
|
|
|