summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile.h
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2006-02-13 11:38:37 +0000
committerMichal Krol <[email protected]>2006-02-13 11:38:37 +0000
commit02eb9acc5e4307db09662592951ef44319a0cda5 (patch)
tree585a539ed6d6775801dcc9e685759521680da9f9 /src/mesa/shader/slang/slang_compile.h
parent44e9ccc708bb0a92dfeaf038ded60295dfe2d3ae (diff)
Get it running for ARB_vertex_shader.
Add experimental print functions to builtin library. Some functionality missing: - automatic arrays; - general constructors; - local variable initialization; - texture sampling and noise; - semantic error checking; - function prototypes.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.h')
-rw-r--r--src/mesa/shader/slang/slang_compile.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_compile.h b/src/mesa/shader/slang/slang_compile.h
index dd774dd35ee..8c7b96c9702 100644
--- a/src/mesa/shader/slang/slang_compile.h
+++ b/src/mesa/shader/slang/slang_compile.h
@@ -54,10 +54,18 @@ typedef struct slang_translation_unit_
slang_struct_scope structs;
slang_unit_type type;
struct slang_assembly_file_ *assembly;
- slang_var_pool global_pool;
+ int free_assembly;
+ slang_var_pool *global_pool;
+ int free_global_pool;
+ struct slang_machine_ *machine;
+ int free_machine;
+ slang_atom_pool *atom_pool;
+ int free_atom_pool;
} slang_translation_unit;
-int slang_translation_unit_construct (slang_translation_unit *);
+int slang_translation_unit_construct (slang_translation_unit *);
+int slang_translation_unit_construct2 (slang_translation_unit *, struct slang_assembly_file_ *,
+ slang_var_pool *, struct slang_machine_ *, slang_atom_pool *);
void slang_translation_unit_destruct (slang_translation_unit *);
typedef struct slang_info_log_