Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question SRP batcher - not compatible, Not initialized () on URP

Discussion in 'Shader Graph' started by tomekkie2, Feb 6, 2021.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    972
    I have migrated a number of shader graphs to Unity 2020.2.2 and URP10.2.2. and HDRP10.2.2

    All they showed as SRP compatible in 2020.1.1 and still do on 2020.2.2. and HDRP10.2.2

    But on URP they show as SRP batcher - not compatible, Not initialized ()
    UnityPerMaterial CBuffer inconsistent size inside a SubShader (Universal Forward).

    Any hints?
     
  2. Camarent

    Camarent

    Joined:
    Feb 19, 2014
    Posts:
    168
    It's a bug that exists across multiple versions of SRP (from 9 to 11). I reported this bug and Unity added it to issue tracker.
    Sad to say I did not find any ways to fix it except waiting for resolution of this bug.

    Also worth to mention that the description in issue tracker is not precise. It can not be fixed by changing order of packages. QA simply forgot to change the RP asset in Quality settings when tested it.

    Here is few related threads:
    https://forum.unity.com/threads/cro...-urp-breaks-srp-batcher.1041535/#post-6787913
    https://forum.unity.com/threads/srp-batcher-not-initialized.953678/

    Here is issue tracker:
    https://issuetracker.unity3d.com/is...ble-when-hdrp-package-was-installed-after-urp
     
    tomekkie2 likes this.
  3. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    972
    Thanks.
    I have also reported this.
     
    Camarent likes this.