diff options
author | Michal Krol <mjkrol@gmail.org> | 2006-02-15 11:15:16 +0000 |
---|---|---|
committer | Michal Krol <mjkrol@gmail.org> | 2006-02-15 11:15:16 +0000 |
commit | dd02edf381a6bc68bad0cb881548db079aa706bb (patch) | |
tree | a0d713ec825ca930b7e3fa8de033b972b561b75d /src/mesa/shader/slang/slang_compile_function.h | |
parent | 88d994c3b2ddb824b5171aa43e7612f516367637 (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.h | 10 |
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 *);
|