Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2022.1.X
Votes
1
Found in
Issue ID
1390142
Regression
No
Missing keyword declarations when using dynamic branching is not obvious to user
With the recent addition of #pragma dynamic_branch it is now possible to use keywords in runtime branching style code in addition to the preprocessor code selection.
If a shader has multiple subshaders/passes with shared code, it is easy to forget to declare all the keywords that are required for the shared code. The current errors given in this situation do not really help the user. All that we tell is "undeclared identifier 'FOOBAR'". It would be much better if we could tell the user right away that they're missing the keyword declaration in this particular pass.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fog "Density" field dragging is too sensitive
- Webpage from example hyperlink is missing when opened in the Universal 3D sample template
- Console window loses focus of the last message when a lot of messages are shown in a row
- Shadow artifacts appear when using a merged mesh with a specific Near Plane value in the Play Mode in URP
- "TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR" error when a lot of web requests are sent within a few minutes
Add comment