Hi, does anyone have an idea of how to remove SRP Batcher compatibility from a shader?
I will be trying to implement GPU instancing for the same shader but need to get rid of SRP Batcher compatibility for it first. I know how to deactivate the feature globally in the Rendering Asset, but that’s not what I’m looking for.
Per “documentation”, I copy the ShaderGraph generated code into a new .shader file, add a new material property under “Properties”, NOT declaring it under “CBUFFER”, and that should do the trick… but instead, after recompiling, the shader is still marked as “SRP Batcher - compatible”.
I also tried utilising the newly generated property somewhere in the shader code, with no luck in breaking the SRP Batcher compatibility. Not being an expert (at all) in hlsl, I have no idea of what to try in order to actually break it.
So, am I missing something? Maybe it is really not compatible anymore but is still flagged as it is?
If someone could help, it would be awesome!