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
- Console Warning -- KeyboardIconAtlas sprite Input Outline goes beyond the boundary of the Sprite rect.
- Reflection Probe “Probe Scene Editing Mode:” text is barely visible
- [HDRP] Game view doesn’t refresh after changing Camera Background Type until mouse moves over it
- Some Shaders appear twice in Material Shader selection menu
- Editor freezes with a StackOverflowException when certain asset types are assigned to a managed component in a SubScene via AddComponentObject
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.