1

I am using Unity3d. I am writing shader. How to show count operations in shader?

1 Answer 1

1

To see the instruction count of a shader in Unity, select the shader in the project. (Here I'm selecting one of NGUI's shaders for example)

Then in the inspector you should see a button "Open Compiled Shader".

Clicking on this will open the compiled shader and in the opened file you should be able to find the instruction count on lines marked # ... instructions.

1
  • How to open custom(my) shader as compiled shader?
    – Oksana
    Sep 11, 2013 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.