aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_function.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-11-17 13:37:16 -0800
committerKenneth Graunke <[email protected]>2010-11-17 13:37:16 -0800
commitaf1cba2260c3546ba89d47c9612d66f513e69842 (patch)
treeb0f0e2748d7a36a846b3730ce2ed78c2a169f460 /src/glsl/builtin_function.cpp
parent671ccf593e1079d0f3e1adf42831d09da91a2b68 (diff)
Refresh autogenerated file builtin_function.cpp.
Diffstat (limited to 'src/glsl/builtin_function.cpp')
-rw-r--r--src/glsl/builtin_function.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/glsl/builtin_function.cpp b/src/glsl/builtin_function.cpp
index cf0a2a3f829..bc368141053 100644
--- a/src/glsl/builtin_function.cpp
+++ b/src/glsl/builtin_function.cpp
@@ -714,9 +714,11 @@ static const char builtin_cross[] =
"((function cross\n"
" (signature vec3\n"
" (parameters\n"
- " (declare (in) vec3 arg0)\n"
- " (declare (in) vec3 arg1))\n"
- " ((return (expression vec3 cross (var_ref arg0) (var_ref arg1)))))\n"
+ " (declare (in) vec3 a)\n"
+ " (declare (in) vec3 b))\n"
+ " ((return (expression vec3 -\n"
+ " (expression vec3 * (swiz yzx (var_ref a)) (swiz zxy (var_ref b)))\n"
+ " (expression vec3 * (swiz zxy (var_ref a)) (swiz yzx (var_ref b)))))))\n"
"))\n"
""
;