2 Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
3 WARNING: 0:121: 'switch' : last case/default label not followed by statements
4 WARNING: 0:134: 'switch' : last case/default label not followed by statements
5 WARNING: 0:139: 'switch' : last case/default label not followed by statements
11 // Module Version 10000
12 // Generated by (magic number): 80001
13 // Id's are bound by 263
16 1: ExtInstImport "GLSL.std.450"
17 MemoryModel Logical GLSL450
18 EntryPoint Fragment 4 "main" 73 221
19 ExecutionMode 4 OriginLowerLeft
22 Name 15 "foo1(vf4;vf4;i1;"
26 Name 20 "foo2(vf4;vf4;i1;"
45 Decorate 58(local) RelaxedPrecision
46 Decorate 60(c) RelaxedPrecision
47 Decorate 71(f) RelaxedPrecision
48 Decorate 73(x) RelaxedPrecision
49 Decorate 127(d) RelaxedPrecision
50 Decorate 153(i) RelaxedPrecision
51 Decorate 171(j) RelaxedPrecision
52 Decorate 221(color) RelaxedPrecision
53 Decorate 227(v) RelaxedPrecision
57 7: TypeVector 6(float) 4
58 8: TypePointer Function 7(fvec4)
60 10: TypePointer Function 9(int)
61 11: TypeFunction 7(fvec4) 8(ptr) 8(ptr) 10(ptr)
62 36: 6(float) Constant 0
63 37: 7(fvec4) ConstantComposite 36 36 36 36
64 47: 6(float) Constant 1065353216
65 48: 7(fvec4) ConstantComposite 47 47 47 47
66 59: TypePointer UniformConstant 9(int)
67 60(c): 59(ptr) Variable UniformConstant
69 70: TypePointer Function 6(float)
70 72: TypePointer Input 6(float)
71 73(x): 72(ptr) Variable Input
72 127(d): 59(ptr) Variable UniformConstant
73 154: 9(int) Constant 0
74 159: 9(int) Constant 10
76 172: 9(int) Constant 20
77 177: 9(int) Constant 30
78 182: 6(float) Constant 1120429670
79 202: 6(float) Constant 1079739679
80 220: TypePointer Output 6(float)
81 221(color): 220(ptr) Variable Output
82 226: TypePointer UniformConstant 7(fvec4)
83 227(v): 226(ptr) Variable UniformConstant
85 236: 235(int) Constant 1
86 247: 235(int) Constant 2
87 4(main): 2 Function None 3
89 58(local): 10(ptr) Variable Function
90 71(f): 70(ptr) Variable Function
91 153(i): 10(ptr) Variable Function
92 171(j): 10(ptr) Variable Function
93 228(param): 8(ptr) Variable Function
94 230(param): 8(ptr) Variable Function
95 232(param): 10(ptr) Variable Function
96 240(param): 8(ptr) Variable Function
97 242(param): 8(ptr) Variable Function
98 244(param): 10(ptr) Variable Function
101 62: 9(int) Load 58(local)
102 64: 9(int) IAdd 62 63
104 65: 9(int) Load 60(c)
105 SelectionMerge 69 None
110 80: 6(float) Load 73(x)
111 81: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 80
115 74: 6(float) Load 73(x)
116 75: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 74
120 77: 6(float) Load 73(x)
121 78: 6(float) ExtInst 1(GLSL.std.450) 14(Cos) 77
125 83: 9(int) Load 60(c)
126 SelectionMerge 87 None
131 97: 6(float) Load 73(x)
132 98: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 97
133 99: 6(float) Load 71(f)
134 100: 6(float) FAdd 99 98
138 88: 6(float) Load 73(x)
139 89: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 88
140 90: 6(float) Load 71(f)
141 91: 6(float) FAdd 90 89
145 92: 6(float) Load 73(x)
146 93: 6(float) ExtInst 1(GLSL.std.450) 14(Cos) 92
147 94: 6(float) Load 71(f)
148 95: 6(float) FAdd 94 93
152 102: 9(int) Load 60(c)
153 SelectionMerge 105 None
158 106: 6(float) Load 73(x)
159 107: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 106
160 108: 6(float) Load 71(f)
161 109: 6(float) FAdd 108 107
165 111: 6(float) Load 73(x)
166 112: 6(float) ExtInst 1(GLSL.std.450) 14(Cos) 111
167 113: 6(float) Load 71(f)
168 114: 6(float) FAdd 113 112
172 117: 9(int) Load 60(c)
173 SelectionMerge 121 None
178 148: 6(float) Load 73(x)
179 149: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 148
180 150: 6(float) Load 71(f)
181 151: 6(float) FAdd 150 149
185 122: 6(float) Load 73(x)
186 123: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 122
187 124: 6(float) Load 71(f)
188 125: 6(float) FAdd 124 123
192 128: 9(int) Load 127(d)
193 SelectionMerge 131 None
198 132: 6(float) Load 73(x)
199 133: 6(float) Load 73(x)
200 134: 6(float) FMul 132 133
201 135: 6(float) Load 73(x)
202 136: 6(float) FMul 134 135
203 137: 6(float) Load 71(f)
204 138: 6(float) FAdd 137 136
208 140: 6(float) Load 73(x)
209 141: 6(float) Load 73(x)
210 142: 6(float) FMul 140 141
211 143: 6(float) Load 71(f)
212 144: 6(float) FAdd 143 142
221 158: 9(int) Load 153(i)
222 161: 160(bool) SLessThan 158 159
223 LoopMerge 156 155 None
224 BranchConditional 161 157 156
226 162: 9(int) Load 60(c)
227 SelectionMerge 166 None
232 196: 6(float) Load 73(x)
233 197: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 196
234 198: 6(float) Load 71(f)
235 199: 6(float) FAdd 198 197
239 167: 6(float) Load 73(x)
240 168: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 167
241 169: 6(float) Load 71(f)
242 170: 6(float) FAdd 169 168
247 176: 9(int) Load 171(j)
248 178: 160(bool) SLessThan 176 177
249 LoopMerge 174 173 None
250 BranchConditional 178 175 174
252 179: 6(float) Load 71(f)
253 180: 6(float) FAdd 179 47
255 181: 6(float) Load 71(f)
256 183: 160(bool) FOrdLessThan 181 182
257 SelectionMerge 185 None
258 BranchConditional 183 184 185
262 187: 9(int) Load 171(j)
263 188: 9(int) IAdd 187 63
269 190: 6(float) Load 73(x)
270 191: 6(float) ExtInst 1(GLSL.std.450) 14(Cos) 190
271 192: 6(float) Load 71(f)
272 193: 6(float) FAdd 192 191
276 201: 6(float) Load 71(f)
277 203: 160(bool) FOrdLessThan 201 202
278 SelectionMerge 205 None
279 BranchConditional 203 204 205
283 207: 9(int) Load 153(i)
284 208: 9(int) IAdd 207 63
288 209: 9(int) Load 60(c)
289 SelectionMerge 212 None
294 213: 6(float) Load 73(x)
295 214: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 213
296 215: 6(float) Load 71(f)
297 216: 6(float) FAdd 215 214
303 222: 6(float) Load 71(f)
304 223: 9(int) Load 58(local)
305 224: 6(float) ConvertSToF 223
306 225: 6(float) FAdd 222 224
308 229: 7(fvec4) Load 227(v)
310 231: 7(fvec4) Load 227(v)
312 233: 9(int) Load 60(c)
314 234: 7(fvec4) FunctionCall 15(foo1(vf4;vf4;i1;) 228(param) 230(param) 232(param)
315 237: 6(float) CompositeExtract 234 1
316 238: 6(float) Load 221(color)
317 239: 6(float) FAdd 238 237
319 241: 7(fvec4) Load 227(v)
321 243: 7(fvec4) Load 227(v)
323 245: 9(int) Load 60(c)
325 246: 7(fvec4) FunctionCall 20(foo2(vf4;vf4;i1;) 240(param) 242(param) 244(param)
326 248: 6(float) CompositeExtract 246 2
327 249: 6(float) Load 221(color)
328 250: 6(float) FAdd 249 248
330 251: 9(int) Load 60(c)
331 SelectionMerge 254 None
339 258: 9(int) Load 60(c)
340 SelectionMerge 260 None
347 15(foo1(vf4;vf4;i1;): 7(fvec4) Function None 11
348 12(v1): 8(ptr) FunctionParameter
349 13(v2): 8(ptr) FunctionParameter
350 14(i1): 10(ptr) FunctionParameter
352 22: 9(int) Load 14(i1)
353 SelectionMerge 26 None
360 27: 7(fvec4) Load 12(v1)
363 29: 7(fvec4) Load 13(v2)
366 31: 7(fvec4) Load 12(v1)
367 32: 7(fvec4) Load 13(v2)
368 33: 7(fvec4) FMul 31 32
373 20(foo2(vf4;vf4;i1;): 7(fvec4) Function None 11
374 17(v1): 8(ptr) FunctionParameter
375 18(v2): 8(ptr) FunctionParameter
376 19(i1): 10(ptr) FunctionParameter
378 39: 9(int) Load 19(i1)
379 SelectionMerge 44 None
386 45: 7(fvec4) Load 17(v1)
391 50: 7(fvec4) Load 18(v2)
394 52: 7(fvec4) Load 17(v1)
395 53: 7(fvec4) Load 18(v2)
396 54: 7(fvec4) FMul 52 53