blob: ccb955b8a76d3b0615f5537ce2378f97442114dd [file] [log] [blame]
Kenneth Graunkee4afc642010-04-28 22:57:47 -07001((function lessThanEqual
2 (signature bvec2
3 (parameters
4 (declare (in) vec2 arg0)
5 (declare (in) vec2 arg1))
6 ((declare () bvec2 temp)
Kenneth Graunkea40e68b2010-05-03 02:40:10 -07007 (assign (constant bool (1)) (swiz x (var_ref temp)) (expression bool <= (swiz x (var_ref arg0))(swiz x (var_ref arg1))))
8 (assign (constant bool (1)) (swiz y (var_ref temp)) (expression bool <= (swiz y (var_ref arg0))(swiz y (var_ref arg1))))
Kenneth Graunkee4afc642010-04-28 22:57:47 -07009 (return (var_ref temp))))
10
11 (signature bvec3
12 (parameters
13 (declare (in) vec3 arg0)
14 (declare (in) vec3 arg1))
15 ((declare () bvec3 temp)
Kenneth Graunkea40e68b2010-05-03 02:40:10 -070016 (assign (constant bool (1)) (swiz x (var_ref temp)) (expression bool <= (swiz x (var_ref arg0))(swiz x (var_ref arg1))))
17 (assign (constant bool (1)) (swiz y (var_ref temp)) (expression bool <= (swiz y (var_ref arg0))(swiz y (var_ref arg1))))
18 (assign (constant bool (1)) (swiz z (var_ref temp)) (expression bool <= (swiz z (var_ref arg0))(swiz z (var_ref arg1))))
Kenneth Graunkee4afc642010-04-28 22:57:47 -070019 (return (var_ref temp))))
20
21 (signature bvec4
22 (parameters
23 (declare (in) vec4 arg0)
24 (declare (in) vec4 arg1))
25 ((declare () bvec4 temp)
Kenneth Graunkea40e68b2010-05-03 02:40:10 -070026 (assign (constant bool (1)) (swiz x (var_ref temp)) (expression bool <= (swiz x (var_ref arg0))(swiz x (var_ref arg1))))
27 (assign (constant bool (1)) (swiz y (var_ref temp)) (expression bool <= (swiz y (var_ref arg0))(swiz y (var_ref arg1))))
28 (assign (constant bool (1)) (swiz z (var_ref temp)) (expression bool <= (swiz z (var_ref arg0))(swiz z (var_ref arg1))))
29 (assign (constant bool (1)) (swiz w (var_ref temp)) (expression bool <= (swiz w (var_ref arg0))(swiz w (var_ref arg1))))
Kenneth Graunkee4afc642010-04-28 22:57:47 -070030 (return (var_ref temp))))
31
32 (signature bvec2
33 (parameters
34 (declare (in) ivec2 arg0)
35 (declare (in) ivec2 arg1))
36 ((declare () bvec2 temp)
Kenneth Graunkea40e68b2010-05-03 02:40:10 -070037 (assign (constant bool (1)) (swiz x (var_ref temp)) (expression bool <= (swiz x (var_ref arg0))(swiz x (var_ref arg1))))
38 (assign (constant bool (1)) (swiz y (var_ref temp)) (expression bool <= (swiz y (var_ref arg0))(swiz y (var_ref arg1))))
Kenneth Graunkee4afc642010-04-28 22:57:47 -070039 (return (var_ref temp))))
40
41 (signature bvec3
42 (parameters
43 (declare (in) ivec3 arg0)
44 (declare (in) ivec3 arg1))
45 ((declare () bvec3 temp)
Kenneth Graunkea40e68b2010-05-03 02:40:10 -070046 (assign (constant bool (1)) (swiz x (var_ref temp)) (expression bool <= (swiz x (var_ref arg0))(swiz x (var_ref arg1))))
47 (assign (constant bool (1)) (swiz y (var_ref temp)) (expression bool <= (swiz y (var_ref arg0))(swiz y (var_ref arg1))))
48 (assign (constant bool (1)) (swiz z (var_ref temp)) (expression bool <= (swiz z (var_ref arg0))(swiz z (var_ref arg1))))
Kenneth Graunkee4afc642010-04-28 22:57:47 -070049 (return (var_ref temp))))
50
51 (signature bvec4
52 (parameters
53 (declare (in) ivec4 arg0)
54 (declare (in) ivec4 arg1))
55 ((declare () bvec4 temp)
Kenneth Graunkea40e68b2010-05-03 02:40:10 -070056 (assign (constant bool (1)) (swiz x (var_ref temp)) (expression bool <= (swiz x (var_ref arg0))(swiz x (var_ref arg1))))
57 (assign (constant bool (1)) (swiz y (var_ref temp)) (expression bool <= (swiz y (var_ref arg0))(swiz y (var_ref arg1))))
58 (assign (constant bool (1)) (swiz z (var_ref temp)) (expression bool <= (swiz z (var_ref arg0))(swiz z (var_ref arg1))))
59 (assign (constant bool (1)) (swiz w (var_ref temp)) (expression bool <= (swiz w (var_ref arg0))(swiz w (var_ref arg1))))
Kenneth Graunkee4afc642010-04-28 22:57:47 -070060 (return (var_ref temp))))
61))