Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

DrawMeshInstancedIndirect Error

Discussion in '2019.3 Alpha' started by GilCat, Aug 8, 2019.

  1. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    402
    After moving to Unity 2019.3.0a11 my console started spamming this DrawMeshInstancedIndirect error:
    DrawMeshInstancedIndirect should not be called with a shader does not use procedural instancing. Either add procedural instancing to your shader by using "#pragma instancing_options procedural", or use a different rendering function such as DrawMeshInstanced.
    UnityEngine.Graphics:DrawMeshInstancedIndirect(Mesh, Int32, Material, Bounds, ComputeBuffer)

    I've added #pragma instancing_options procedural:setup and a dummy setup method but nothing changed.
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    1,103
    GilCat likes this.