glsl: Add doxygen explaining what main.cpp is for.
authorEric Anholt <eric@anholt.net>
Wed, 18 Apr 2012 21:40:10 +0000 (14:40 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Apr 2012 17:00:54 +0000 (10:00 -0700)
I keep getting lost in the Makefile trying to figure out what to edit
to work on builtin_compiler or glsl_compiler.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/main.cpp

index 3231b1be936bb888e9120984d6fb43d0c9ba0fe5..64c2496eba8802ab7868f178de3e35e3114a39f8 100644 (file)
  */
 #include <getopt.h>
 
+/** @file main.cpp
+ *
+ * This file is the main() routine and scaffolding for producing
+ * builtin_compiler (which doesn't include builtins itself and is used
+ * to generate the profile information for builtin_function.cpp), and
+ * for glsl_compiler (which does include builtins and can be used to
+ * offline compile GLSL code and examine the resulting GLSL IR.
+ */
+
 #include "ast.h"
 #include "glsl_parser_extras.h"
 #include "ir_optimization.h"