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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
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