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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 10.2.0):
Fixed in ShaderGraph 10.2.0 which is available in Unity 2020.2