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
- Object Picker takes the debounce time to load objects when Object Selector is set to Advanced search
- Packman: The same asset data is displayed differently in "Import" and "Remove" popups
- Reference to a deleted GameObject becomes "None" instead of "Missing" when the GameObject is restored with undo after entering and exiting Play Mode
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
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.