Home | History | Annotate | Download | only in ir
      1 ((function step
      2    (signature float
      3      (parameters
      4        (declare (in) float edge)
      5        (declare (in) float x))
      6      ((return (expression float b2f (expression bool >= (var_ref x) (var_ref edge))))))
      7 
      8    (signature vec2
      9      (parameters
     10        (declare (in) float edge)
     11        (declare (in) vec2 x))
     12      ((declare () vec2 t)
     13       (assign (constant bool (1)) (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edge))))
     14       (assign (constant bool (1)) (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edge))))
     15       (return (var_ref t))))
     16 
     17    (signature vec3
     18      (parameters
     19        (declare (in) float edge)
     20        (declare (in) vec3 x))
     21      ((declare () vec3 t)
     22       (assign (constant bool (1)) (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edge))))
     23       (assign (constant bool (1)) (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edge))))
     24       (assign (constant bool (1)) (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(var_ref edge))))
     25       (return (var_ref t))))
     26 
     27    (signature vec4
     28      (parameters
     29        (declare (in) float edge)
     30        (declare (in) vec4 x))
     31      ((declare () vec4 t)
     32       (assign (constant bool (1)) (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edge))))
     33       (assign (constant bool (1)) (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edge))))
     34       (assign (constant bool (1)) (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(var_ref edge))))
     35       (assign (constant bool (1)) (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(var_ref edge))))
     36       (return (var_ref t))))
     37 
     38    (signature vec2
     39      (parameters
     40        (declare (in) vec2 edge)
     41        (declare (in) vec2 x))
     42      ((declare () vec2 t)
     43       (assign (constant bool (1)) (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var_ref edge)))))
     44       (assign (constant bool (1)) (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz y (var_ref edge)))))
     45       (return (var_ref t))))
     46 
     47    (signature vec3
     48      (parameters
     49        (declare (in) vec3 edge)
     50        (declare (in) vec3 x))
     51      ((declare () vec3 t)
     52       (assign (constant bool (1)) (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var_ref edge)))))
     53       (assign (constant bool (1)) (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz y (var_ref edge)))))
     54       (assign (constant bool (1)) (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(swiz z (var_ref edge)))))
     55       (return (var_ref t))))
     56 
     57    (signature vec4
     58      (parameters
     59        (declare (in) vec4 edge)
     60        (declare (in) vec4 x))
     61      ((declare () vec4 t)
     62       (assign (constant bool (1)) (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var_ref edge)))))
     63       (assign (constant bool (1)) (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz y (var_ref edge)))))
     64       (assign (constant bool (1)) (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(swiz z (var_ref edge)))))
     65       (assign (constant bool (1)) (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(swiz w (var_ref edge)))))
     66       (return (var_ref t))))
     67 ))
     68 
     69