GLSLGenerator: Added generation for helper macros and functions.