Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X, 2021.2.X
Votes
0
Found in
2019.4
2019.4.28f1
2020.3
2021.1
2021.2
2022.1
Issue ID
1353368
Regression
No
SRPBatcher not increasing CBuffer size when material shader is changed
Reproduction steps:
1. Open the attached project ("SRPBatcher_MaterialInstance_Shader_Switcheroo.zip")
2. Open the "Main" Scene: Assets > Scenes > "Main.asset"
3. Make a build for Windows platform: File > Build Settings > Click "Add Open Scenes" > Click "Build And Run"
4. In the built project change the right cube's shader: click "Switch Shader" button
5. Click "Set _Colour" and "Set _Padding[x]" buttons (these set the CBuffer float4s to 1)
Expected result: Right cube should turn white
Actual result: Right cube remains black
Reproducible with: 2019.4.29f1, 2020.3.14f1, 2021.1.17f1, 2021.2.0b5, 2022.1.0a4
Can't test with: 2018.4.36f1 (downgrading errors, Incompatible URP package)
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
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a7
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b12
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.20f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.18f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.31f1