Steps to reproduce:
1. Create a new HDRP 3D Template
2. Open Render Graph Viewer
3. Observe Scene or Game view (Depending on Render Graph Viever's target camera)
Actual results: Scene view is flickering in Gray and Gizmos are missing. Game view is flickering in black. Render Graph Viewer's results cannot be captured. Multiple errors are thrown as well
Expected results: Render results for Scene or Main Camera are unaffected by Render Graph Viewer
Reproducible with versions: 6000.0.0f1
Not reproducible with versions: 2021.3.37f1, 2022.3.22f1, 2023.2.20f1, 6000.0.0b16
Tested on (OS): macOS 14.4.1 (Intel), Windows 11
Notes:
- Errors thrown:
- Error while building Render Graph.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)
- ArgumentException: The passed in texture handle does not have a valid descriptor. (This is most commonly cause by the handle referencing a built-in texture such as the system back buffer.)
Parameter name: handle
UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry.GetTextureResourceDesc (UnityEngine.Rendering.RenderGraphModule.ResourceHandle& handle, System.Boolean noThrowOnInvalidDesc) (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/RenderGraph/RenderGraphResourceRegistry.cs:840)
- Render Graph Execution error
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)
- nvalidOperationException: The CullingResults instance is no longer valid. This can happen if you re-use it across multiple frames.
UnityEngine.Rendering.CullingResults.Validate () (at /Users/bokken/build/output/unity/unity/Runtime/Export/RenderPipeline/CullingResults.cs:163)