Search Issue Tracker
Fixed in 10.2.0
Votes
3
Found in [Package]
9.0.0-preview.15
Issue ID
1235070
Regression
No
[ShaderGraph] Shader loses SRP Batcher compatibility if Texel Size node is used
How to reproduce:
1. Open the attached project named "Case_1235070"
2. Open the Test shader graph
3. Observe the Inspector window which shows that the shader is SRP Batcher compatible
4. Connect the Texel Size node to the master and save the graph
5. Observe the Inspector window again
Expected result: Shader remains SRP Batcher compatible
Actual result: Shader becomes incompatible with SRP Batcher
Reproducible with: 2018.4.21f1, 2019.3.9f1, 2020.1.0b5, 2020.2.0a7
Could not test with: 2017.4.38f1(No package manager)
Reproducible with package versions: 6.9.2, 8.0.1, 9.0.0-preview.15(git master)
Notes:
Comments (1)
-
organick
Nov 03, 2020 20:52
Seeing the same issue, here's the message in the inspector:
Material property is found in another cbuffer than "UnityPerMaterial" (_MainTex_TexelSize)Relevant generated shader code:
Constant Buffer "$Globals" (1856 bytes) on slot 0 {
Vector4 _MainTex_TexelSize at 1824
Vector4 _RendererColor at 1840
}
Constant Buffer "UnityPerMaterial" (32 bytes) on slot 1 {
Float _OutlineThickness at 0
Vector4 _OutlineColor at 16
}
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
- Desktop Linux runtime does not respect -popupwindow command line argument
- Shader Graph more options dropdown button does not open the dropdown when clicked all the way to the right of the button
- “Attempting to draw with missing bindings“ warning lacks root cause indication and is thrown each frame when StructuredBuffer is accessed on DirectX12
- Shader Graph Import Settings documentation leads to "Sorry... that page seems to be missing!" page when opened through the documentation button in the Inspector window
- Unexpected Material change/transparency when switching between ShaderGraph and material at runtime in HDRP
Resolution Note (fix version 10.2.0):
Fixed in ShaderGraph 10.2.0 which is available in Unity 2020.2