summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile.h
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2005-04-22 10:43:36 +0000
committerMichal Krol <[email protected]>2005-04-22 10:43:36 +0000
commitaddcc6afbd5a94bf0c35ad04e914503056d0e994 (patch)
tree4d9fd13939c1c5d8c804c91f382ed1dd38a927b7 /src/mesa/shader/slang/slang_compile.h
parent19fb77ee7b02782b383f5ffe30854d0b36dc845e (diff)
Add more error checking.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.h')
-rw-r--r--src/mesa/shader/slang/slang_compile.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_compile.h b/src/mesa/shader/slang/slang_compile.h
index 0458f3a2b2a..25a0ef8ad81 100644
--- a/src/mesa/shader/slang/slang_compile.h
+++ b/src/mesa/shader/slang/slang_compile.h
@@ -214,17 +214,22 @@ typedef struct slang_function_scope_
typedef enum slang_unit_type_
{
slang_unit_fragment_shader,
- slang_unit_vertex_shader
+ slang_unit_vertex_shader,
+ slang_unit_fragment_builtin,
+ slang_unit_vertex_builtin
} slang_unit_type;
typedef struct slang_translation_unit_
{
- slang_variable_scope *globals;
+ slang_variable_scope globals;
slang_function_scope functions;
- slang_struct_scope *structs;
+ slang_struct_scope structs;
slang_unit_type type;
} slang_translation_unit;
+void slang_translation_unit_construct (slang_translation_unit *);
+void slang_translation_unit_destruct (slang_translation_unit *);
+
typedef struct slang_info_log_
{
char *text;