This speeds up EEVEE startup and material compilation time. Authored by Apple: James McCarthy Pull Request: https://projects.blender.org/blender/blender/pulls/125657
Also move some function doc-strings from the implementation to their declarations.
Pull Request: https://projects.blender.org/blender/blender/pulls/119807