summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/acos.ir
blob: f0078f884e7709a2b2c4261ac4385956fd34d764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
((function acos
   (signature float
     (parameters
       (declare (in) float x))
     ((declare () float s)
      (call asin (var_ref s) ((var_ref x)))
      (return (expression float - (constant float (1.5707963)) (var_ref s)))))

   (signature vec2
     (parameters
       (declare (in) vec2 x))
     ((declare () vec2 s)
      (call asin (var_ref s) ((var_ref x)))
      (return (expression vec2 - (constant float (1.5707963)) (var_ref s)))))

   (signature vec3
     (parameters
       (declare (in) vec3 x))
     ((declare () vec3 s)
      (call asin (var_ref s) ((var_ref x)))
      (return (expression vec3 - (constant float (1.5707963)) (var_ref s)))))

   (signature vec4
     (parameters
       (declare (in) vec4 x))
     ((declare () vec4 s)
      (call asin (var_ref s) ((var_ref x)))
      (return (expression vec4 - (constant float (1.5707963)) (var_ref s)))))
))