Hello,
I am trying to add Single-pass instanced rendering feature to my shaders. However, I got the error undeclared identifier “UNITY_INITIALIZE_OUTPUT”. Did I miss something?
Hello,
I am trying to add Single-pass instanced rendering feature to my shaders. However, I got the error undeclared identifier “UNITY_INITIALIZE_OUTPUT”. Did I miss something?
Hi Zhutianlu,
You probably already solved this, but for future reference. The macro “UNITY_INITIALIZE_OUTPUT” is updated for URP shader. Here the reference: From Built-in to URP
So for this case you should use “ZERO_INITIALIZE” instead.
I hope it helps you!
Thank you very much!!!