summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/baseResults/variableArrayIndex.frag.out
blob: 2a63d115b1bf7bd9d0bf87654a7232fa3b5ba7fa (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
variableArrayIndex.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release

Shader version: 130
0:? Sequence
0:29  Function Definition: main( (global void)
0:29    Function Parameters: 
0:?     Sequence
0:32      Sequence
0:32        move second child to first child (temp int)
0:32          'iLocal' (temp int)
0:32          'Count' (uniform int)
0:34      Test condition and select (temp void)
0:34        Condition
0:34        Compare Greater Than (temp bool)
0:34          i: direct index for structure (global int)
0:34            direct index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:34              s2_1: direct index for structure (global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:34                'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:34                Constant:
0:34                  0 (const int)
0:34              Constant:
0:34                1 (const int)
0:34            Constant:
0:34              0 (const int)
0:34          Constant:
0:34            0 (const int)
0:34        true case
0:35        move second child to first child (temp float)
0:35          'scale' (temp float)
0:35          f: direct index for structure (global float)
0:35            s1_1: direct index for structure (global structure{global int i, global float f})
0:35              indirect index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                'foo2' (uniform 5-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                add (temp int)
0:35                  add (temp int)
0:35                    i: direct index for structure (global int)
0:35                      indirect index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                        s2_1: direct index for structure (global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                          'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                          Constant:
0:35                            0 (const int)
0:35                        i: direct index for structure (global int)
0:35                          'foo' (uniform structure{global int i, global float f})
0:35                          Constant:
0:35                            0 (const int)
0:35                      Constant:
0:35                        0 (const int)
0:35                    Constant:
0:35                      2 (const int)
0:35                  Pre-Increment (temp int)
0:35                    'iLocal' (temp int)
0:35              Constant:
0:35                2 (const int)
0:35            Constant:
0:35              1 (const int)
0:34        false case
0:37        move second child to first child (temp float)
0:37          'scale' (temp float)
0:37          f: direct index for structure (global float)
0:37            s1_1: direct index for structure (global structure{global int i, global float f})
0:37              direct index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:37                s2_1: direct index for structure (global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:37                  'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:37                  Constant:
0:37                    0 (const int)
0:37                Constant:
0:37                  0 (const int)
0:37              Constant:
0:37                2 (const int)
0:37            Constant:
0:37              1 (const int)
0:43      move second child to first child (temp 4-component vector of float)
0:43        'gl_FragColor' (fragColor 4-component vector of float FragColor)
0:43        vector-scale (temp 4-component vector of float)
0:43          'scale' (temp float)
0:43          texture (global 4-component vector of float)
0:43            'sampler' (uniform sampler2D)
0:43            'coord' (smooth in 2-component vector of float)
0:45      Sequence
0:45        move second child to first child (temp 3-element array of 2-component vector of float)
0:45          'constructed' (temp 3-element array of 2-component vector of float)
0:45          Construct vec2 (temp 3-element array of 2-component vector of float)
0:45            'coord' (smooth in 2-component vector of float)
0:45            Construct vec2 (temp 2-component vector of float)
0:45              'scale' (temp float)
0:45            Constant:
0:45              1.000000
0:45              2.000000
0:46      add second child into first child (temp 4-component vector of float)
0:46        'gl_FragColor' (fragColor 4-component vector of float FragColor)
0:46        Construct vec4 (temp 4-component vector of float)
0:46          indirect index (temp 2-component vector of float)
0:46            'constructed' (temp 3-element array of 2-component vector of float)
0:46            i: direct index for structure (global int)
0:46              'foo' (uniform structure{global int i, global float f})
0:46              Constant:
0:46                0 (const int)
0:46          indirect index (temp 2-component vector of float)
0:46            'constructed' (temp 3-element array of 2-component vector of float)
0:46            i: direct index for structure (global int)
0:46              'foo' (uniform structure{global int i, global float f})
0:46              Constant:
0:46                0 (const int)
0:?   Linker Objects
0:?     'sampler' (uniform sampler2D)
0:?     'coord' (smooth in 2-component vector of float)
0:?     'foo' (uniform structure{global int i, global float f})
0:?     'foo2' (uniform 5-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:?     'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:?     'Count' (uniform int)


Linked fragment stage:


Shader version: 130
0:? Sequence
0:29  Function Definition: main( (global void)
0:29    Function Parameters: 
0:?     Sequence
0:32      Sequence
0:32        move second child to first child (temp int)
0:32          'iLocal' (temp int)
0:32          'Count' (uniform int)
0:34      Test condition and select (temp void)
0:34        Condition
0:34        Compare Greater Than (temp bool)
0:34          i: direct index for structure (global int)
0:34            direct index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:34              s2_1: direct index for structure (global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:34                'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:34                Constant:
0:34                  0 (const int)
0:34              Constant:
0:34                1 (const int)
0:34            Constant:
0:34              0 (const int)
0:34          Constant:
0:34            0 (const int)
0:34        true case
0:35        move second child to first child (temp float)
0:35          'scale' (temp float)
0:35          f: direct index for structure (global float)
0:35            s1_1: direct index for structure (global structure{global int i, global float f})
0:35              indirect index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                'foo2' (uniform 5-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                add (temp int)
0:35                  add (temp int)
0:35                    i: direct index for structure (global int)
0:35                      indirect index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                        s2_1: direct index for structure (global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                          'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:35                          Constant:
0:35                            0 (const int)
0:35                        i: direct index for structure (global int)
0:35                          'foo' (uniform structure{global int i, global float f})
0:35                          Constant:
0:35                            0 (const int)
0:35                      Constant:
0:35                        0 (const int)
0:35                    Constant:
0:35                      2 (const int)
0:35                  Pre-Increment (temp int)
0:35                    'iLocal' (temp int)
0:35              Constant:
0:35                2 (const int)
0:35            Constant:
0:35              1 (const int)
0:34        false case
0:37        move second child to first child (temp float)
0:37          'scale' (temp float)
0:37          f: direct index for structure (global float)
0:37            s1_1: direct index for structure (global structure{global int i, global float f})
0:37              direct index (temp structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:37                s2_1: direct index for structure (global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:37                  'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:37                  Constant:
0:37                    0 (const int)
0:37                Constant:
0:37                  0 (const int)
0:37              Constant:
0:37                2 (const int)
0:37            Constant:
0:37              1 (const int)
0:43      move second child to first child (temp 4-component vector of float)
0:43        'gl_FragColor' (fragColor 4-component vector of float FragColor)
0:43        vector-scale (temp 4-component vector of float)
0:43          'scale' (temp float)
0:43          texture (global 4-component vector of float)
0:43            'sampler' (uniform sampler2D)
0:43            'coord' (smooth in 2-component vector of float)
0:45      Sequence
0:45        move second child to first child (temp 3-element array of 2-component vector of float)
0:45          'constructed' (temp 3-element array of 2-component vector of float)
0:45          Construct vec2 (temp 3-element array of 2-component vector of float)
0:45            'coord' (smooth in 2-component vector of float)
0:45            Construct vec2 (temp 2-component vector of float)
0:45              'scale' (temp float)
0:45            Constant:
0:45              1.000000
0:45              2.000000
0:46      add second child into first child (temp 4-component vector of float)
0:46        'gl_FragColor' (fragColor 4-component vector of float FragColor)
0:46        Construct vec4 (temp 4-component vector of float)
0:46          indirect index (temp 2-component vector of float)
0:46            'constructed' (temp 3-element array of 2-component vector of float)
0:46            i: direct index for structure (global int)
0:46              'foo' (uniform structure{global int i, global float f})
0:46              Constant:
0:46                0 (const int)
0:46          indirect index (temp 2-component vector of float)
0:46            'constructed' (temp 3-element array of 2-component vector of float)
0:46            i: direct index for structure (global int)
0:46              'foo' (uniform structure{global int i, global float f})
0:46              Constant:
0:46                0 (const int)
0:?   Linker Objects
0:?     'sampler' (uniform sampler2D)
0:?     'coord' (smooth in 2-component vector of float)
0:?     'foo' (uniform structure{global int i, global float f})
0:?     'foo2' (uniform 5-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1})
0:?     'foo3' (uniform structure{global 3-element array of structure{global int i, global float f, global structure{global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{global int i, global float f} s1_1})
0:?     'Count' (uniform int)