summaryrefslogtreecommitdiffstats
path: root/src/glsl/program.h
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-01-28 14:21:59 -0800
committerPaul Berry <[email protected]>2013-02-04 10:36:35 -0800
commitb92900d26a54ef997f2920d6a7371bb7c9caabf8 (patch)
tree8d94422c2bfa0284294b2de18233d0033c7581df /src/glsl/program.h
parent11bd1b0f589bfeab8fcad5c70adf4c8a665eebc9 (diff)
mesa/glsl: Separate parsing logic from _mesa_get_uniform_location.
The parsing logic is moved to a new function in the GLSL module, parse_program_resource_name(). This name was chosen because it should eventually be useful for handling everything that OpenGL 4.3 calls "program resources" (e.g. uniforms, vertex inputs, fragment outputs, and transform feedback varyings). Future patches will make use of this function for linking transform feedback varyings. NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/program.h')
-rw-r--r--src/glsl/program.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/program.h b/src/glsl/program.h
index 437ca1462fa..46ce9dcccd8 100644
--- a/src/glsl/program.h
+++ b/src/glsl/program.h
@@ -33,3 +33,7 @@ linker_error(gl_shader_program *prog, const char *fmt, ...)
extern void
linker_warning(gl_shader_program *prog, const char *fmt, ...)
PRINTFLIKE(2, 3);
+
+extern long
+parse_program_resource_name(const GLchar *name,
+ const GLchar **out_base_name_end);