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-22 15:17:10 -0600 |
commit | 11a5c2d4eea69122fd09f272e68afb95143873c6 (patch) | |
tree | 705660a62aba97c54b77633c380c92a979e94764 /src/mesa/shader/slang/slang_compile_struct.h | |
parent | e4139657e0ac40febef1f5e229317aa58b032261 (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 *); |