Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2019.4.X, 2020.1.X, 2020.2.X
Votes
1
Found in
2018.4
2019.4
2020.1
2020.2
Issue ID
1261620
Regression
No
[Bug] Frame Debugger does not show all keywords used by the shader when certain shader_feature directives are used
How to reproduce:
1. Open the attached project named "Case_1261620"
2. Open the Test Scene
3. Click Window -> Analysis -> Frame Debugger -> Enable
4. Select one of the Spheres in the draw sequence
5. Observe the details of the Unlit/Test shader
Expected result: There is a COLOR_GREEN keyword listed in the Keywords section
Actual result: COLOR_GREEN keyword is not listed. Since it was the only keyword used in the shader, the whole Keywords section is missing
Reproducible with: 2018.4.26f1, 2019.4.5f1, 2020.1.0f1, 2020.2.0a19
Graphics APIs affected: D3D11, D3D12, OpenGLCore, Metal
Graphics APIs not affected: Vulkan
Notes:
1. Reproducible when shader_feature_local_fragment or shader_feature_fragment is used. Usually, does not reproduce when shader_feature_local or shader_feature is used.
2. Reproducible with the built-in renderer, URP(8.1.0, 9.0.0-preview.35) and HDRP(8.1.0)
3. shader_feature_local_fragment and shader_feature_local did not toggle the keyword in 2018.4.26f1(Track_12612620_V1)
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
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
- New selector in Matching Selectors displays as on line -1 in debugger
- The first frames are skipped when playing a video
- Text auto-scrolling can not work when naming assets/objects until backspace key is pressed
Resolution Note (fix version 2021.1):
Fixed in - 2021.1.0a6
Resolution Note (fix version 2020.2):
Fixed in - 2020.2.0b14
Resolution Note (fix version 2020.1):
Fixed in - 2020.1.16f1
Resolution Note (fix version 2019.4):
Fixed in - 2019.4.17f1