Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

10.5.0

Issue ID

1372138

Regression

No

Automatic shader vars don't support Dynamic Resolution Scaling

Package: Scriptable Render Pipeline Universal

-

How to reproduce:
1. Open the attached project from "DRSIssue.zip"
2. Open Scene "SampleScene"
3. In Game View options click "Load RenderDoc" and enter Play Mode
4. Launch RenderDoc and attach to an instance: Unity and capture a frame of the Game View
5. Double click the capture and navigate to "UIR.DrawChain -> UIR.ImmediateRender -> UniversalRenderPipeline.RenderSingleCamera -> ScriptableRenderer.Execute -> Render PostProcessing Effects -> StopNaNs"
6. In RenderDoc you can see the texture has been scaled down, right-click on the frame, click "Debug" and see in global values that _SourceTex_TexelSize variable has the original resolution

Actual result: Automatic shader variables like _MainTex_TexelSize are not reflecting DRS scaling of the RT set as the MainTex
Expected result: Automatic shader vars like _MainTex_TexelSize should reflect DRS scaling

Reproducible with: 10.5.0 - 13.0.0 (2020.3.20f1, 2021.1.25f1, 2021.2.0b16, 2022.1.0a13)
Couldn't test with: 7.7.1 (2019.4.31f1)

Note: Reproduction steps illustrated in the edit section

  1. Resolution Note:

    We will fix scaling in URP with support to dynamic scaling and RTHandles.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.