summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_builtin.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-12 12:27:35 -0600
committerBrian Paul <[email protected]>2009-08-12 12:35:12 -0600
commitfd5eda1423dff38ea1af589f7abd47b002a4f5ed (patch)
treedf33b8e1cecbb568c061b7eb16186e3ff3757896 /src/mesa/shader/slang/slang_builtin.h
parent2708ddfb06a36d8568e2aa130bf1f7d551fcd309 (diff)
glsl: move predefined shader input/output info/code to slang_builtin.c
This is a more logical place for this code. Also add some functions for querying vertex shader input names, types, etc.
Diffstat (limited to 'src/mesa/shader/slang/slang_builtin.h')
-rw-r--r--src/mesa/shader/slang/slang_builtin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.h b/src/mesa/shader/slang/slang_builtin.h
index 7f6fe80fcca..f814d11ac73 100644
--- a/src/mesa/shader/slang/slang_builtin.h
+++ b/src/mesa/shader/slang/slang_builtin.h
@@ -37,4 +37,18 @@ _slang_alloc_statevar(slang_ir_node *n,
GLboolean *direct);
+extern GLint
+_slang_input_index(const char *name, GLenum target, GLuint *swizzleOut);
+
+extern GLint
+_slang_output_index(const char *name, GLenum target);
+
+
+extern const char *
+_slang_vert_attrib_name(GLuint attrib);
+
+extern GLenum
+_slang_vert_attrib_type(GLuint attrib);
+
+
#endif /* SLANG_BUILTIN_H */