As of Unity 2022.2.3 I am getting spammed with this in a build for about half of my ShaderGraph Shader:
A BatchDrawCommand is using a pass from the shader "NauticalGlobeShader/LineAtlasShader" that is not SRP Batcher compatible. Reason: "UnityPerMaterial CBuffer inconsistent size inside a SubShader" (<Variable name only available in the Editor>)
This is not supported when rendering with a BatchRendererGroup (or Entities Graphics). MaterialID: 6 ("NauticalGlobeShader/LineAtlasShader"), MeshID: 241 (""), BatchID: 6.
Using Entities and Entities Graphic 1.0.0-pre.15. Had none of this so far pre-2022.2.3 and there is also no issues when using play mode in the Editor. Same has been reported here .