This patch optimizes nodes with Boolean and Menu inputs for GPU execution. This is done by using constant links instead of uniforms for those inputs. This will cause shader recompilation, but is okay since those inputs rarely change. Pull Request: https://projects.blender.org/blender/blender/pulls/145329