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

Graphics - LowLevel

-

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)

  1. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0a7

  2. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0b12

  3. Resolution Note (fix version 2021.1):

    Fixed in: 2021.1.20f1

  4. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.18f1

  5. Resolution Note (fix version 2019.4):

    Fixed in: 2019.4.31f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.