[Unity]显示Shader编译后的指令数

2021/02 25 20:02

一、选中Shader,在Inspector页面中,点 Compiled code / Compile and show code 右边的小三角形,选择 Current graphics device,然后再点“Compile and show code”

每一个SubShader都会生成对应的指令数信息

记住,如果选择是的 Current build platform,则不会显示这个指令数