From 5bfe30a02be67f2b0e757921295a89adfd368e3f Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 7 Apr 2010 16:44:30 -0700 Subject: Add utility function to get the name of a shader target --- glsl_parser_extras.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'glsl_parser_extras.h') 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 */ -- cgit v1.2.3