summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-01-14 12:16:00 -0700
committerBrian Paul <[email protected]>2009-01-14 12:16:00 -0700
commitfae9604727c048834a7d5a90f8a652c86cff057a (patch)
treed976085922289ec2d0329f42ab962f2edae57229 /src/mesa/main
parentaac4a0509e6a5d8e3c8f8179519bcd21364ae18e (diff)
glsl: propagate pragma info down into compiler from preprocessor
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/mtypes.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 3eca8a85f95..2014745a7a8 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2094,6 +2094,13 @@ struct gl_query_state
};
+/** Set by #pragma directives */
+struct gl_sl_pragmas
+{
+ GLboolean Optimize; /**< defaults on */
+ GLboolean Debug; /**< defaults off */
+};
+
/**
* A GLSL vertex or fragment shader object.
@@ -2104,12 +2111,12 @@ struct gl_shader
GLuint Name; /**< AKA the handle */
GLint RefCount; /**< Reference count */
GLboolean DeletePending;
-
- const GLchar *Source; /**< Source code string */
GLboolean CompileStatus;
+ GLboolean Main; /**< shader defines main() */
+ const GLchar *Source; /**< Source code string */
struct gl_program *Program; /**< Post-compile assembly code */
GLchar *InfoLog;
- GLboolean Main; /**< shader defines main() */
+ struct gl_sl_pragmas Pragmas;
};