Search Issue Tracker
Fixed in 2021.3.35f1
Fixed in 2021.3.X, 2022.3.X, 2023.2.X, 2023.3.X, 2023.3.0a14
Votes
0
Found in
2021.3.24f1
2022.2.16f1
2023.1.0b4
2023.2.0a12
2023.3.0a1
Issue ID
UUM-35111
Regression
No
Editor tracks the incorrect state of shaders when modifying them during “Compiling Compute Shaders”
How to reproduce:
1. Open the attached project “ShaderStateBug”
2. Open the “SampleScene” scene
3. In the Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl comment or uncomment the line “#pragma shader_feature REFLECTION_TYPE1 _MAIN_LIGHT_SHADOWS INSTANCING”
4. Click on the Editor to trigger the recompilation and during “Compile Compute variants” add the line “error” in the Common.hlsl
5. Trigger the recompilation again and delete the “error” line during “Compile Compute variants”
6. Enter the Play Mode
Expected result: There are no errors in the Console and the shaders work correctly
Actual result: The errors are still in the Console preventing shaders from rendering at all
Reproducible with: 2021.3.24f1, 2022.2.16f1, 2023.1.0b4, 2023.2.0a12
Couldn’t test with: 2020.3.48f1 (Compilation errors)
Reproducible on: Windows 11 Pro
Note: Restarting the Editor doesn’t clear the errors
Full error:
Exception: Compute Shader compilation error on platform D3D in file DebugLightVolumes.compute:24: undeclared identifier 'DEBUG_LIGHT_VOLUME_TILE_SIZE' at kernel LightVolumeColors
HDRP will not run until the error is fixed.
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
- [URP] All materials render black when building via batchmode or without rendering Scene/Game view in Editor if Decal renderer Technique is set to "Automatic"
- Player Tags list shows extra blank space behind the scrollbar in the "Player Tags" settings window
- Edit Angular Limits gizmo handles are small and easy to miss-click in the Scene view
- Duplicate Player Tag save fails silently with no error or validation message
- Letters on the left side move further as Letter Spacing is increased when Advanced Text Generator is used and Alignment is set to Center
Resolution Note (fix version 2023.3):
Ensured that include dependencies are registered correctly on edge cases too. This way the shaders will be reimported as expected when errors in the include files are fixed.
Resolution Note (fix version 2023.2):
Ensured that include dependencies are registered correctly on edge cases too. This way the shaders will be reimported as expected when errors in the include files are fixed.
Resolution Note (fix version 2022.3):
Ensured that include dependencies are registered correctly on edge cases too. This way the shaders will be reimported as expected when errors in the include files are fixed.