summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/cross.ir
blob: 02991fe422794e5204122adeb31d9d43ce61f0f4 (plain)
1
2
3
4
5
6
7
8
9
((function cross
   (signature vec3
     (parameters
       (declare (in) vec3 a)
       (declare (in) vec3 b))
     ((return (expression vec3 -
        (expression vec3 * (swiz yzx (var_ref a)) (swiz zxy (var_ref b)))
        (expression vec3 * (swiz zxy (var_ref a)) (swiz yzx (var_ref b)))))))
))