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 265
16 1: ExtInstImport "GLSL.std.450"
17 MemoryModel Logical GLSL450
18 EntryPoint Fragment 4 "main" 73 223
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 172(j) RelaxedPrecision
52 Decorate 223(color) RelaxedPrecision
53 Decorate 229(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 160: 9(int) Constant 10
76 173: 9(int) Constant 20
77 179: 9(int) Constant 30
78 184: 6(float) Constant 1120429670
79 204: 6(float) Constant 1079739679
80 222: TypePointer Output 6(float)
81 223(color): 222(ptr) Variable Output
82 228: TypePointer UniformConstant 7(fvec4)
83 229(v): 228(ptr) Variable UniformConstant
85 238: 237(int) Constant 1
86 249: 237(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 172(j): 10(ptr) Variable Function
93 230(param): 8(ptr) Variable Function
94 232(param): 8(ptr) Variable Function
95 234(param): 10(ptr) Variable Function
96 242(param): 8(ptr) Variable Function
97 244(param): 8(ptr) Variable Function
98 246(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 159: 9(int) Load 153(i)
222 162: 161(bool) SLessThan 159 160
223 LoopMerge 157 158 None
224 BranchConditional 162 156 157
226 163: 9(int) Load 60(c)
227 SelectionMerge 167 None
232 198: 6(float) Load 73(x)
233 199: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 198
234 200: 6(float) Load 71(f)
235 201: 6(float) FAdd 200 199
239 168: 6(float) Load 73(x)
240 169: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 168
241 170: 6(float) Load 71(f)
242 171: 6(float) FAdd 170 169
247 178: 9(int) Load 172(j)
248 180: 161(bool) SLessThan 178 179
249 LoopMerge 176 177 None
250 BranchConditional 180 175 176
252 181: 6(float) Load 71(f)
253 182: 6(float) FAdd 181 47
255 183: 6(float) Load 71(f)
256 185: 161(bool) FOrdLessThan 183 184
257 SelectionMerge 187 None
258 BranchConditional 185 186 187
264 189: 9(int) Load 172(j)
265 190: 9(int) IAdd 189 63
271 192: 6(float) Load 73(x)
272 193: 6(float) ExtInst 1(GLSL.std.450) 14(Cos) 192
273 194: 6(float) Load 71(f)
274 195: 6(float) FAdd 194 193
278 203: 6(float) Load 71(f)
279 205: 161(bool) FOrdLessThan 203 204
280 SelectionMerge 207 None
281 BranchConditional 205 206 207
287 209: 9(int) Load 153(i)
288 210: 9(int) IAdd 209 63
292 211: 9(int) Load 60(c)
293 SelectionMerge 214 None
298 215: 6(float) Load 73(x)
299 216: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 215
300 217: 6(float) Load 71(f)
301 218: 6(float) FAdd 217 216
307 224: 6(float) Load 71(f)
308 225: 9(int) Load 58(local)
309 226: 6(float) ConvertSToF 225
310 227: 6(float) FAdd 224 226
312 231: 7(fvec4) Load 229(v)
314 233: 7(fvec4) Load 229(v)
316 235: 9(int) Load 60(c)
318 236: 7(fvec4) FunctionCall 15(foo1(vf4;vf4;i1;) 230(param) 232(param) 234(param)
319 239: 6(float) CompositeExtract 236 1
320 240: 6(float) Load 223(color)
321 241: 6(float) FAdd 240 239
323 243: 7(fvec4) Load 229(v)
325 245: 7(fvec4) Load 229(v)
327 247: 9(int) Load 60(c)
329 248: 7(fvec4) FunctionCall 20(foo2(vf4;vf4;i1;) 242(param) 244(param) 246(param)
330 250: 6(float) CompositeExtract 248 2
331 251: 6(float) Load 223(color)
332 252: 6(float) FAdd 251 250
334 253: 9(int) Load 60(c)
335 SelectionMerge 256 None
343 260: 9(int) Load 60(c)
344 SelectionMerge 262 None
351 15(foo1(vf4;vf4;i1;): 7(fvec4) Function None 11
352 12(v1): 8(ptr) FunctionParameter
353 13(v2): 8(ptr) FunctionParameter
354 14(i1): 10(ptr) FunctionParameter
356 22: 9(int) Load 14(i1)
357 SelectionMerge 26 None
364 27: 7(fvec4) Load 12(v1)
367 29: 7(fvec4) Load 13(v2)
370 31: 7(fvec4) Load 12(v1)
371 32: 7(fvec4) Load 13(v2)
372 33: 7(fvec4) FMul 31 32
377 20(foo2(vf4;vf4;i1;): 7(fvec4) Function None 11
378 17(v1): 8(ptr) FunctionParameter
379 18(v2): 8(ptr) FunctionParameter
380 19(i1): 10(ptr) FunctionParameter
382 39: 9(int) Load 19(i1)
383 SelectionMerge 44 None
390 45: 7(fvec4) Load 17(v1)
395 50: 7(fvec4) Load 18(v2)
398 52: 7(fvec4) Load 17(v1)
399 53: 7(fvec4) Load 18(v2)
400 54: 7(fvec4) FMul 52 53