summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:46:25 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:49:25 -0700
commite701761cc84a136c2e1b3cf341bc0edb90492278 (patch)
tree808b619ec9bb320eaf77b5343c2dbdc8da8ab3b2 /glsl_parser_extras.h
parentae4c4c07959f059e557ea44e98552ced1fec9f47 (diff)
Begin processing #extension directive
Nowhere near complete. It just parses correctly at this point.
Diffstat (limited to 'glsl_parser_extras.h')
-rw-r--r--glsl_parser_extras.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h
index 2f33bea053..15667ebb68 100644
--- a/glsl_parser_extras.h
+++ b/glsl_parser_extras.h
@@ -86,6 +86,18 @@ extern int _mesa_glsl_lex(union YYSTYPE *yylval, YYLTYPE *yylloc,
extern int _mesa_glsl_parse(struct _mesa_glsl_parse_state *);
/**
+ * Process elements of the #extension directive
+ *
+ * \return
+ * If \c name and \c behavior are valid, \c true is returned. Otherwise
+ * \c false is returned.
+ */
+extern bool _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp,
+ const char *behavior,
+ YYLTYPE *behavior_locp,
+ _mesa_glsl_parse_state *state);
+
+/**
* Get the textual name of the specified shader target
*/
extern const char *