summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_simplify.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-17 16:11:50 -0700
committerBrian <[email protected]>2007-01-17 16:11:50 -0700
commiteabb7e66bd6fa9770bcf17833cf9fc6317ae7948 (patch)
tree1f53912e17f281130033f69e4a2ca82cce047d68 /src/mesa/shader/slang/slang_simplify.h
parent397b807ad5045c354f3fb2079b7779a6d671dc03 (diff)
New _slang_adapt_call() function.
This is used to modify function calls (when possible) to make the arguments map to the function parameters. This includes "unrolling" vector types and doing casts. Example: vec2 v2 = vec2(1.2, 3.4) ivec3 iv = ivec3(false, v2); Is converted into: ivec3 iv = ivec3(int(false), int(v2[0]), int(v2[1]))
Diffstat (limited to 'src/mesa/shader/slang/slang_simplify.h')
-rw-r--r--src/mesa/shader/slang/slang_simplify.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_simplify.h b/src/mesa/shader/slang/slang_simplify.h
index 69be3092a58..0ca1fa2f0d2 100644
--- a/src/mesa/shader/slang/slang_simplify.h
+++ b/src/mesa/shader/slang/slang_simplify.h
@@ -8,5 +8,11 @@ slang_simplify(slang_operation *oper,
slang_atom_pool * atoms);
+extern GLboolean
+_slang_adapt_call(slang_operation *callOper, const slang_function *fun,
+ const slang_assembly_name_space * space,
+ slang_atom_pool * atoms);
+
+
#endif /* SLANG_SIMPLIFY_H */