diff options
author | Brian Paul <[email protected]> | 2009-08-12 12:27:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-12 12:35:12 -0600 |
commit | fd5eda1423dff38ea1af589f7abd47b002a4f5ed (patch) | |
tree | df33b8e1cecbb568c061b7eb16186e3ff3757896 /src/mesa/shader/slang/slang_builtin.h | |
parent | 2708ddfb06a36d8568e2aa130bf1f7d551fcd309 (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.h | 14 |
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 */ |