diff options
author | Tapani Pälli <[email protected]> | 2015-03-12 13:45:22 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-04-16 07:55:56 +0300 |
commit | e0e4d77f0120865b3ca0a4055358fc87d38d1cfe (patch) | |
tree | 38e663dd90d25ef851687b3b2920d5061d976953 /src/mesa/main/shaderapi.h | |
parent | 2a5a0d19d67b2ccd7eee33a6f3bead66cc2d78ff (diff) |
mesa: glGetProgramResourceLocation
Patch adds required helper functions to shaderapi.h and
the actual implementation.
corresponding Piglit test:
arb_program_interface_query-resource-location
The added functionality can be tested by tests for following
functions that are refactored by later patches:
GetAttribLocation
GetUniformLocation
GetFragDataLocation
v2: code cleanup, changes to array element
syntax checking (Ilia Mirkin)
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Martin Peres <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.h')
-rw-r--r-- | src/mesa/main/shaderapi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h index 7a7e3e9e731..73ebf601107 100644 --- a/src/mesa/main/shaderapi.h +++ b/src/mesa/main/shaderapi.h @@ -244,6 +244,10 @@ _mesa_get_program_resource_name(struct gl_shader_program *shProg, GLsizei bufSize, GLsizei *length, GLchar *name, const char *caller); +extern GLint +_mesa_program_resource_location(struct gl_shader_program *shProg, + GLenum interface, const char *name); + #ifdef __cplusplus } #endif |