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
- “No Overlays” Overlay overlaps with the Tile Palette toolbar when docked on the left
- One Camera is not being rendered correctly when the Upscaling Filter is set to Automatic or Bilinear
- Terrain Layer is used for Painting Texture and will be added to the Terrain Layer List after being replaced by another Terrain Layer
- The “+” and “-“ buttons in the Cells list do nothing when pressed but are not deactivated in the Tile Palette window
- "No Overlays" tooltip is cut off, and the "Overlay" word is inconsistent in the tooltip when hovering the mouse cursor over the "No Overlays" text in the Tile Palette window
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.