Show instruction count of compiled shader #8248
priyansh0219
started this conversation in
General Discussions
Replies: 1 comment
-
When using Vulkan-based renderers, Godot compiles the GLSL shader (which is generated from the Godot shader language) into SPIR-V. This SPIR-V (which is an intermediate representation) is then compiled into the binary shader expected by the graphics driver. See RenderingDevice's The question is, at which stage should we report instruction count (and where can we get it easily in a way that can be exposed in the editor)? Note that the Compatibility rendering method (which uses OpenGL) doesn't use SPIR-V. It goes from GLSL to binary shader directly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be good if godot showed the instruction count of shader just like in ue5 so we can better optimize it.
Beta Was this translation helpful? Give feedback.
All reactions