How to reproduce:
1. Open the attached "DynRes.zip" project
2. Open the "OutdoorsScene"
3. In the Hierarchy, select the "Custom Pass" GameObject
4 In the Inspector, under the "Custom Pass Volume (Script)" component, press on the plus sign under "Custom Passes"
5. Select and add any of the passes except for "Vrs Custom Pass"
6. Observe the Console
Actual result: Errors are thrown into the Console
Expected result: No errors are thrown into the Console
Reproducible with: 6000.0.51f1 (a206c6c19c75), 6000.0.70f1, 6000.3.10f1, 6000.4.0b11, 6000.5.0a8
Not reproducible with: 6000.0.50f1
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- Does not reproduce if Dynamic Resolution is disabled in Project Settings
- Errors messages thrown:
"NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.HighDefinition.CustomPass.getConstrainedDepthBuffer () (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@78dc4450998b/Runtime/RenderPipeline/RenderPass/CustomPass/CustomPass.cs:60)"
"ArgumentException: Getting control 3's position in a group with only 3 controls when doing repaint
Aborting"