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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
Resolution Note:
We will fix scaling in URP with support to dynamic scaling and RTHandles.