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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
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