summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:44:30 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:49:25 -0700
commit5bfe30a02be67f2b0e757921295a89adfd368e3f (patch)
tree2e9c788231c87d03579884b2ca76541dfa9db4e4 /glsl_parser_extras.h
parent1b3f47fd363d74b1378f26ca0082a75db518aa1f (diff)
Add utility function to get the name of a shader target
Diffstat (limited to 'glsl_parser_extras.h')
-rw-r--r--glsl_parser_extras.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h
index 373d295bba..2f33bea053 100644
--- a/glsl_parser_extras.h
+++ b/glsl_parser_extras.h
@@ -85,4 +85,10 @@ extern int _mesa_glsl_lex(union YYSTYPE *yylval, YYLTYPE *yylloc,
extern int _mesa_glsl_parse(struct _mesa_glsl_parse_state *);
+/**
+ * Get the textual name of the specified shader target
+ */
+extern const char *
+_mesa_glsl_shader_target_name(enum _mesa_glsl_parser_targets target);
+
#endif /* GLSL_PARSER_EXTRAS_H */