Search Issue Tracker
Fixed
Fixed in 2021.3.35f1, 2022.3.16f1, 2023.2.0b18, 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
- Location tooltip in the Viewport of UI Builder window does not update when the UI Document Asset is moved to a different location
- Audio Clip Volume and Avoid Repeating Last fields values cannot be changed in Audio Random Container window
- Setting a variable in the root selector via an imported USS file in a theme does not work
- No character limit when creating a new Scene with excessively long name, Editor can be forced to crash
- URP Decal Projector flickers/glitches when added to Cube or Quad GameObjects as a Component
Resolution Note (fix version 2023.3.0a14):
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.0b18):
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.16f1):
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.