summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile_function.h
diff options
context:
space:
mode:
authorMichal Krol <mjkrol@gmail.org>2006-02-15 11:15:16 +0000
committerMichal Krol <mjkrol@gmail.org>2006-02-15 11:15:16 +0000
commitdd02edf381a6bc68bad0cb881548db079aa706bb (patch)
treea0d713ec825ca930b7e3fa8de033b972b561b75d /src/mesa/shader/slang/slang_compile_function.h
parent88d994c3b2ddb824b5171aa43e7612f516367637 (diff)
Add support for forward function declarations.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_function.h')
-rw-r--r--src/mesa/shader/slang/slang_compile_function.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile_function.h b/src/mesa/shader/slang/slang_compile_function.h
index 59743dfc29..d1208817cf 100644
--- a/src/mesa/shader/slang/slang_compile_function.h
+++ b/src/mesa/shader/slang/slang_compile_function.h
@@ -36,6 +36,15 @@ typedef enum slang_function_kind_
slang_func_operator
} slang_function_kind;
+typedef struct slang_fixup_table_
+{
+ GLuint *table;
+ GLuint count;
+} slang_fixup_table;
+
+void slang_fixup_table_init (slang_fixup_table *);
+void slang_fixup_table_free (slang_fixup_table *);
+
typedef struct slang_function_
{
slang_function_kind kind;
@@ -44,6 +53,7 @@ typedef struct slang_function_
unsigned int param_count;
slang_operation *body;
unsigned int address;
+ slang_fixup_table fixups;
} slang_function;
int slang_function_construct (slang_function *);