Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug SRP batcher error for SRP compatible shader (Hybrid Renderer v2)

Discussion in 'Graphics for ECS' started by MagicianArtemka, Dec 25, 2020.

  1. MagicianArtemka

    MagicianArtemka

    Joined:
    Jan 15, 2019
    Posts:
    46
    Hi guys.

    Problem
    Unity reports the next error when I run Play Mode.

    A Hybrid Renderer V2 batch is using a pass from the shader "Shader Graphs/MyShader", which is not SRP batcher compatible. Only SRP batcher compatible passes are supported with the Hybrid Renderer.

    I'm sure, that I use the SRP compatible shader (Unity told me that my shader is SRP compatible).

    This's all. The game runs good and all shaders behave as expected.

    Parameters of my project:
    • Unity 2020.2.0f1
    • Hybrid Renderer V2 (Hybrid Renderer package - 0.10.0-preview.21)
    • URP 10.2.2
     
    deus0 likes this.
  2. Thygrrr

    Thygrrr

    Joined:
    Sep 23, 2013
    Posts:
    673
    I get this one a lot too.

    Sometimes this happens becuase the async loading shader isn't SRP compatible.

    Sometimes this happens for no discernible reason.
     
    charleshendry likes this.