summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/findMSB.ir
blob: 24e270f5e17b30883a6c0b1a18bcaca4aead97c7 (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
30
31
32
33
34
35
36
37
38
39
40
41
((function findMSB
   (signature int
     (parameters
       (declare (in) int value))
     ((return (expression int find_msb (var_ref value)))))

   (signature ivec2
     (parameters
       (declare (in) ivec2 value))
     ((return (expression ivec2 find_msb (var_ref value)))))

   (signature ivec3
     (parameters
       (declare (in) ivec3 value))
     ((return (expression ivec3 find_msb (var_ref value)))))

   (signature ivec4
     (parameters
       (declare (in) ivec4 value))
     ((return (expression ivec4 find_msb (var_ref value)))))

   (signature int
     (parameters
       (declare (in) uint value))
     ((return (expression int find_msb (var_ref value)))))

   (signature ivec2
     (parameters
       (declare (in) uvec2 value))
     ((return (expression ivec2 find_msb (var_ref value)))))

   (signature ivec3
     (parameters
       (declare (in) uvec3 value))
     ((return (expression ivec3 find_msb (var_ref value)))))

   (signature ivec4
     (parameters
       (declare (in) uvec4 value))
     ((return (expression ivec4 find_msb (var_ref value)))))
))