Search Issue Tracker
Fixed in 2022.3.40f1
Fixed in 2022.3.X, 6000.0.X, 7000.0.0a13, future release
Votes
0
Found in
2022.3.9f1
2023.1.13f1
2023.2.0b9
2023.3.0a5
6000.0.0b11
6000.1.0a7
Issue ID
UUM-48599
Regression
No
Dynamic Branching generates Shader Variants when building the Project
Reproduction steps:
1. Open the attached “Test Project” project
2. Make a Clean Build of the Project (File > Build Settings > Build > Clean Build)
3. Open the Project Auditor window (Window > Analysis > Project Auditor)
4. Press the “Analyze” button
5. In the Project Auditor window view Compute Variants (View > Assets > Shaders > Compute Variants)
Expected result: There are no variants with the dynamic_branch keyword
Actual result: There are over one million variants with the dynamic_branch keyword
Reproducible with: 2022.1.0a15, 2022.1.24f1, 2022.3.9f1, 2023.1.13f1, 2023.2.0b9, 2023.3.0a5
Not reproducible with: 2021.3.30f1, 2022.1.0a14
Reproducible on: Windows 10
Not reproducible on: No other environment tested
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
- Performance Markers Search window shows an empty entry in the list
- Enabling Deep Profiling in Performance Markers Search window breaks Inspector panel buttons when navigating through the marker items
- Dragging selector from selector row background shows preview but does not apply class in UI Builder
- An "InvalidOperationException" error is thrown when TryRemoveItem is used with rebuildTree set to false
- Build fails with IL2CPP error when building on Android platform in a specific project
Resolution Note (fix version 6000.0):
Filter out dynamic branch keywords when computing shader variants.