diff options
author | Tapani Pälli <[email protected]> | 2015-03-10 09:30:30 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-04-16 07:55:56 +0300 |
commit | 161f57f6103802de55d792bcc6a4370afa5c5173 (patch) | |
tree | 99acd1008bb300817352af3d050366f7b5fe1f0f /src/mesa/main/shaderapi.h | |
parent | 4d3b98bc5801df27a7f9f2e3df28d66d83f883d9 (diff) |
mesa: glGetProgramResourceIndex
Patch adds required helper functions to shaderapi.h and
the actual implementation.
v2: code cleanup (Ilia Mirkin)
corresponding Piglit test:
arb_program_interface_query-getprogramresourceindex
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h index 6db52f798b8..d80252b460a 100644 --- a/src/mesa/main/shaderapi.h +++ b/src/mesa/main/shaderapi.h @@ -226,6 +226,14 @@ _mesa_program_resource_name(struct gl_program_resource *res); extern unsigned _mesa_program_resource_array_size(struct gl_program_resource *res); +extern GLuint +_mesa_program_resource_index(struct gl_shader_program *shProg, + struct gl_program_resource *res); + +extern struct gl_program_resource * +_mesa_program_resource_find_name(struct gl_shader_program *shProg, + GLenum interface, const char *name); + #ifdef __cplusplus } #endif |