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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
We will fix scaling in URP with support to dynamic scaling and RTHandles.