summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-04-20 10:29:12 +1000
committerDave Airlie <airlied@redhat.com>2015-07-23 17:25:59 +1000
commit6f57fda494a6b4ccf30cab000ca28154fbabcb78 (patch)
treed8980fce3defc130475711b9513c78d9993e694b /src/mesa/main/shaderapi.h
parent3f4f3e2d4877e1e2bda064cc323fb7b3667e12fe (diff)
downloadexternal_mesa3d-6f57fda494a6b4ccf30cab000ca28154fbabcb78.zip
external_mesa3d-6f57fda494a6b4ccf30cab000ca28154fbabcb78.tar.gz
external_mesa3d-6f57fda494a6b4ccf30cab000ca28154fbabcb78.tar.bz2
mesa: fill out the ARB_shader_subroutine APIs
This fleshes out the APIs, using the program resource APIs where they should match. It also sets the default values to valid subroutines. Acked-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/shaderapi.h')
-rw-r--r--src/mesa/main/shaderapi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h
index c2f04d8..c081f74 100644
--- a/src/mesa/main/shaderapi.h
+++ b/src/mesa/main/shaderapi.h
@@ -272,6 +272,9 @@ extern void GLAPIENTRY
_mesa_PatchParameterfv(GLenum pname, const GLfloat *values);
/* GL_ARB_shader_subroutine */
+void
+_mesa_shader_program_init_subroutine_defaults(struct gl_shader_program *shProg);
+
extern GLint GLAPIENTRY
_mesa_GetSubroutineUniformLocation(GLuint program, GLenum shadertype,
const GLchar *name);