From 161f57f6103802de55d792bcc6a4370afa5c5173 Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Tue, 10 Mar 2015 09:30:30 +0200 Subject: mesa: glGetProgramResourceIndex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Martin Peres --- src/mesa/main/shaderapi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/main/shaderapi.h') 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 -- cgit v1.2.3