From dd02edf381a6bc68bad0cb881548db079aa706bb Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Wed, 15 Feb 2006 11:15:16 +0000 Subject: Add support for forward function declarations. --- src/mesa/shader/slang/slang_compile_function.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mesa/shader/slang/slang_compile_function.h') 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 *); -- cgit v1.2.3