Copyright © 2026 Unity Technologies
Reproduction steps for the latest 2022.3 version:
1. Open the attached “DepthShadows.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Enter the Play Mode
4. Observe the Console
Expected result: No errors are present
Actual result: RenderPass errors are being thrown
Reproduction steps for the latest 6000.1 version:
1. Open the attached “DepthShadows.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Make a standalone build in Development mode
4. Observe the build Console
Expected result: No errors are present
Actual result: RenderPass errors are being thrown
Errors: ”RenderPass: Attachment 0 is declared as depth attachment but BGRA8 sRGB is not a valid depth format. UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle) BeginSubPass: Not inside a Renderpass UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle) EndRenderPass: Not inside a Renderpass UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)”
The bug has been fixed in the Editor (edit: mostly bypassed by disabling NRP there) starting version 6000.0.33f1. However, the problem remains in a Standalone build. The problem is also present in the Editor and Builds for 2022.3 latest version.
Reproducible with:
Fixed in: 6000.0.21f1 (Editor only).
Reproducible on: M1 Max MacOS 15.1.1 and Windows 10
Not reproducible on: No other environment tested
Issues you vote on will appear here