diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.Debug.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.Debug.cs index 9688eb67a82..709b6467924 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.Debug.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.Debug.cs @@ -1217,8 +1217,17 @@ void PushFullScreenDebugTexture(RenderGraph renderGraph, TextureHandle input, bo passData.customScaleBias = new Vector4(customScales.x, customScales.y, 0.0f, 0.0f); } - passData.output = builder.UseColorBuffer(renderGraph.CreateTexture(new TextureDesc(Vector2.one, false, true) - { colorFormat = rtFormat, name = "DebugFullScreen" }), 0); + if (DynamicResolutionHandler.instance.DynamicResolutionEnabled() && DynamicResolutionHandler.instance.SoftwareDynamicResIsEnabled()) + { + passData.output = builder.UseColorBuffer(renderGraph.CreateTexture(new TextureDesc(DynamicResolutionHandler.instance.finalViewport.x, DynamicResolutionHandler.instance.finalViewport.y, false, true) + { colorFormat = rtFormat, name = "DebugFullScreen" }), 0); + } + else + { + passData.output = builder.UseColorBuffer(renderGraph.CreateTexture(new TextureDesc(Vector2.one, false, true) + { colorFormat = rtFormat, name = "DebugFullScreen" }), 0); + } + builder.SetRenderFunc( (PushFullScreenDebugPassData data, RenderGraphContext ctx) =>