For example, I have a material with 10 static parameters like Static Switch, Component Masks, Static Bool etc. When I make an instance of it, every time a new combination of the static parameter is made, shader compile kicks in. There can be more than few thousands shaders to compile for all combinations. Is there currently any way to compile all at once?
Note: Please don’t ask me why do I have so many Static parameters. There are many reasons for that. One of the reason is when you use static switch, in some situation it can save a lot of instructions and keep shader complexity to very very low.