Home | History | Annotate | Download | only in ir
      1 ((function sin
      2    (signature float
      3      (parameters
      4        (declare (in) float angle))
      5 		(
      6 			(return (expression float sin (var_ref angle)))
      7 		)
      8 	)
      9 
     10    (signature vec2
     11      (parameters
     12        (declare (in) vec2 angle))
     13       	(
     14 			(declare () vec2 ret)
     15 			(assign (constant bool (1)) (x) (var_ref ret) (call sin ((swiz x (var_ref angle)))))
     16 			(assign (constant bool (1)) (y) (var_ref ret) (call sin ((swiz y (var_ref angle)))))
     17 			(return (var_ref ret))
     18 		)
     19 	)
     20 
     21    (signature vec3
     22      (parameters
     23        (declare (in) vec3 angle))
     24 		(
     25 			(declare () vec3 ret)
     26 			(assign (constant bool (1)) (x) (var_ref ret) (call sin ((swiz x (var_ref angle)))))
     27 			(assign (constant bool (1)) (y) (var_ref ret) (call sin ((swiz y (var_ref angle)))))
     28 			(assign (constant bool (1)) (z) (var_ref ret) (call sin ((swiz z (var_ref angle)))))
     29 			(return (var_ref ret))
     30 		)
     31 	)
     32 
     33 	(signature vec4
     34 		(parameters 
     35 			(declare (in) vec4 angle))
     36 		(
     37 			(declare () vec4 ret)
     38 			(assign (constant bool (1)) (x) (var_ref ret) (call sin ((swiz x (var_ref angle)))))
     39 			(assign (constant bool (1)) (y) (var_ref ret) (call sin ((swiz y (var_ref angle)))))
     40 			(assign (constant bool (1)) (z) (var_ref ret) (call sin ((swiz z (var_ref angle)))))
     41 			(assign (constant bool (1)) (w) (var_ref ret) (call sin ((swiz w (var_ref angle)))))
     42 			(return (var_ref ret))
     43 		)
     44 	)
     45 ))
     46