Can't get Graphics.DrawMeshInstancedIndirect to work with URP 12.1

Hey. I’ve tried the code example from docs - the example seems unchanged from Unity 5.x days, and it does work perfectly with built-in legacy renderer, shows thousands of rotating meshes, but in URP it won’t work at all. I tried with 2021.1.28, 2021.2.7 and 2022.1 alpha - same result. Only a static single pink square is visible in editor, and in the build it’s just blank.

SRP batcher is disabled, shader doesn’t show that it supports it either.

I’ve read anything I could find about GPU instancing in official docs, nothing helps. Is there a way around this, or maybe a working example anywhere? Preferably of Graphics.DrawMeshInstancedIndirect without using any UNITY_INSTANCING_* macros, just raw shader + C# script.

I submitted a repro project in case 1390210

me too

Solution for this is in the incorrect LightMode tag. URP has different light mode tags, find out which one works and the rest of the example is fine.