summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_codegen.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-01 19:50:28 -0600
committerBrian Paul <brianp@vmware.com>2009-04-01 19:54:35 -0600
commit49fb750a6884c3f647f46270ffce8652f664f908 (patch)
tree8a666b370a04c14b14391c6d9281e0ccd032e339 /src/mesa/shader/slang/slang_codegen.h
parent1ab225017ed1ea8bd9e266d10ee56ab914bb28c1 (diff)
glsl: implement compiling/linking of separate compilation units
A shader program may consist of multiple shaders (source code units). If we find there are unresolved functions after compiling the unit that defines main(), we'll concatenate all the respective vertex or fragment shaders then recompile. This isn't foolproof but should work in most cases.
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.h')
-rw-r--r--src/mesa/shader/slang/slang_codegen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.h b/src/mesa/shader/slang/slang_codegen.h
index e812c1f7ea..d80013ad34 100644
--- a/src/mesa/shader/slang/slang_codegen.h
+++ b/src/mesa/shader/slang/slang_codegen.h
@@ -43,6 +43,7 @@ typedef struct slang_assemble_ctx_
struct slang_ir_node_ *CurLoop;
struct slang_function_ *CurFunction;
GLuint UnrollLoop;
+ GLboolean UnresolvedRefs;
} slang_assemble_ctx;