diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-07-22 15:17:10 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-07-29 17:20:14 -0600 |
commit | 7af8dddf2705cf0e2c02154615900bf49c8ee25a (patch) | |
tree | 2cdbd98e3cd919b0eb76959ed0df0f305bc25732 /src/mesa/shader/slang/slang_compile_struct.h | |
parent | a9412ca2e89030897cd45747b70ebab6840c46b7 (diff) |
mesa: glsl: implement constructor functions for user-defined types
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_struct.h')
-rw-r--r-- | src/mesa/shader/slang/slang_compile_struct.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/slang_compile_struct.h b/src/mesa/shader/slang/slang_compile_struct.h index 79e6306616..90c5512f4d 100644 --- a/src/mesa/shader/slang/slang_compile_struct.h +++ b/src/mesa/shader/slang/slang_compile_struct.h @@ -29,11 +29,13 @@ extern "C" { #endif +struct slang_function_; + typedef struct slang_struct_scope_ { - struct slang_struct_ *structs; + struct slang_struct_ *structs; GLuint num_structs; - struct slang_struct_scope_ *outer_scope; + struct slang_struct_scope_ *outer_scope; } slang_struct_scope; extern GLvoid @@ -45,9 +47,10 @@ struct slang_struct_ *slang_struct_scope_find (slang_struct_scope *, slang_atom, typedef struct slang_struct_ { - slang_atom a_name; - struct slang_variable_scope_ *fields; - slang_struct_scope *structs; + slang_atom a_name; + struct slang_variable_scope_ *fields; + slang_struct_scope *structs; + struct slang_function_ *constructor; } slang_struct; int slang_struct_construct (slang_struct *); |