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:
-
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 10.2.0):
Fixed in ShaderGraph 10.2.0 which is available in Unity 2020.2