Shader Instructions Count

How can I know how many instructions my compiled shader has?

Inside the shader block you can use the directive #pragma debug and open the compiled shader and count the number of instructions.

Select “Open compiled shader” from the inspector. You’ll get the shader source as it is produced for various APIs (OpenGL, DX, etc.). In the comments for each platform, you’ll find information like how many instructions your shader uses on it.