3 gl_FragCoord origin is upper left
5 0:3 Function Definition: Test1( ( temp void)
6 0:3 Function Parameters:
9 0:5 move second child to first child ( temp structure{ temp 2-component vector of float a})
10 0:5 'test1' ( temp structure{ temp 2-component vector of float a})
15 0:9 move second child to first child ( temp structure{ temp 2-component vector of float a})
16 0:9 'test2' ( temp structure{ temp 2-component vector of float a})
21 0:17 move second child to first child ( temp float)
22 0:17 'test4' ( temp float)
26 0:20 move second child to first child ( temp structure{ temp float a, temp float b, temp float c})
27 0:20 'test5' ( temp structure{ temp float a, temp float b, temp float c})
35 0:25 move second child to first child ( temp float)
36 0:25 'n' ( temp float)
40 0:26 move second child to first child ( temp 8-element array of 3-component vector of float)
41 0:26 'a' ( const (read only) 8-element array of 3-component vector of float)
42 0:26 Construct vec3 ( temp 8-element array of 3-component vector of float)
43 0:27 vector-scale ( temp 3-component vector of float)
48 0:27 add second child into first child ( temp float)
49 0:27 'n' ( temp float)
52 0:28 vector-scale ( temp 3-component vector of float)
57 0:28 add second child into first child ( temp float)
58 0:28 'n' ( temp float)
61 0:29 vector-scale ( temp 3-component vector of float)
66 0:29 add second child into first child ( temp float)
67 0:29 'n' ( temp float)
70 0:30 vector-scale ( temp 3-component vector of float)
75 0:30 add second child into first child ( temp float)
76 0:30 'n' ( temp float)
79 0:31 vector-scale ( temp 3-component vector of float)
84 0:31 add second child into first child ( temp float)
85 0:31 'n' ( temp float)
88 0:32 vector-scale ( temp 3-component vector of float)
93 0:32 add second child into first child ( temp float)
94 0:32 'n' ( temp float)
97 0:33 vector-scale ( temp 3-component vector of float)
102 0:33 add second child into first child ( temp float)
103 0:33 'n' ( temp float)
106 0:34 vector-scale ( temp 3-component vector of float)
111 0:34 add second child into first child ( temp float)
112 0:34 'n' ( temp float)
116 0:36 move second child to first child ( temp structure{ temp 3-component vector of float a})
117 0:36 'oneNonConst' ( const (read only) structure{ temp 3-component vector of float a})
118 0:36 Construct structure ( temp structure{ temp 3-component vector of float a})
119 0:36 vector-scale ( temp 3-component vector of float)
124 0:36 add second child into first child ( temp float)
125 0:36 'n' ( temp float)
129 0:38 move second child to first child ( temp structure{ temp 3-component vector of float a, temp 3-component vector of float b})
130 0:38 'twoNonConst' ( const (read only) structure{ temp 3-component vector of float a, temp 3-component vector of float b})
131 0:38 Construct structure ( temp structure{ temp 3-component vector of float a, temp 3-component vector of float b})
132 0:38 vector-scale ( temp 3-component vector of float)
137 0:38 add second child into first child ( temp float)
138 0:38 'n' ( temp float)
141 0:39 vector-scale ( temp 3-component vector of float)
146 0:39 add second child into first child ( temp float)
147 0:39 'n' ( temp float)
150 0:45 Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
151 0:45 Function Parameters:
153 0:46 Function Call: Test1( ( temp void)
154 0:49 move second child to first child ( temp 4-component vector of float)
155 0:49 color: direct index for structure ( temp 4-component vector of float)
156 0:49 'ps_output' ( temp structure{ temp 4-component vector of float color})
164 0:50 Branch: Return with expression
165 0:50 'ps_output' ( temp structure{ temp 4-component vector of float color})
166 0:45 Function Definition: main( ( temp void)
167 0:45 Function Parameters:
170 0:45 move second child to first child ( temp 4-component vector of float)
171 0:? 'color' (layout( location=0) out 4-component vector of float)
172 0:45 color: direct index for structure ( temp 4-component vector of float)
173 0:45 Function Call: @main( ( temp structure{ temp 4-component vector of float color})
177 0:? 'color' (layout( location=0) out 4-component vector of float)
180 Linked fragment stage:
184 gl_FragCoord origin is upper left
186 0:3 Function Definition: Test1( ( temp void)
187 0:3 Function Parameters:
190 0:5 move second child to first child ( temp structure{ temp 2-component vector of float a})
191 0:5 'test1' ( temp structure{ temp 2-component vector of float a})
196 0:9 move second child to first child ( temp structure{ temp 2-component vector of float a})
197 0:9 'test2' ( temp structure{ temp 2-component vector of float a})
202 0:17 move second child to first child ( temp float)
203 0:17 'test4' ( temp float)
207 0:20 move second child to first child ( temp structure{ temp float a, temp float b, temp float c})
208 0:20 'test5' ( temp structure{ temp float a, temp float b, temp float c})
216 0:25 move second child to first child ( temp float)
217 0:25 'n' ( temp float)
221 0:26 move second child to first child ( temp 8-element array of 3-component vector of float)
222 0:26 'a' ( const (read only) 8-element array of 3-component vector of float)
223 0:26 Construct vec3 ( temp 8-element array of 3-component vector of float)
224 0:27 vector-scale ( temp 3-component vector of float)
229 0:27 add second child into first child ( temp float)
230 0:27 'n' ( temp float)
233 0:28 vector-scale ( temp 3-component vector of float)
238 0:28 add second child into first child ( temp float)
239 0:28 'n' ( temp float)
242 0:29 vector-scale ( temp 3-component vector of float)
247 0:29 add second child into first child ( temp float)
248 0:29 'n' ( temp float)
251 0:30 vector-scale ( temp 3-component vector of float)
256 0:30 add second child into first child ( temp float)
257 0:30 'n' ( temp float)
260 0:31 vector-scale ( temp 3-component vector of float)
265 0:31 add second child into first child ( temp float)
266 0:31 'n' ( temp float)
269 0:32 vector-scale ( temp 3-component vector of float)
274 0:32 add second child into first child ( temp float)
275 0:32 'n' ( temp float)
278 0:33 vector-scale ( temp 3-component vector of float)
283 0:33 add second child into first child ( temp float)
284 0:33 'n' ( temp float)
287 0:34 vector-scale ( temp 3-component vector of float)
292 0:34 add second child into first child ( temp float)
293 0:34 'n' ( temp float)
297 0:36 move second child to first child ( temp structure{ temp 3-component vector of float a})
298 0:36 'oneNonConst' ( const (read only) structure{ temp 3-component vector of float a})
299 0:36 Construct structure ( temp structure{ temp 3-component vector of float a})
300 0:36 vector-scale ( temp 3-component vector of float)
305 0:36 add second child into first child ( temp float)
306 0:36 'n' ( temp float)
310 0:38 move second child to first child ( temp structure{ temp 3-component vector of float a, temp 3-component vector of float b})
311 0:38 'twoNonConst' ( const (read only) structure{ temp 3-component vector of float a, temp 3-component vector of float b})
312 0:38 Construct structure ( temp structure{ temp 3-component vector of float a, temp 3-component vector of float b})
313 0:38 vector-scale ( temp 3-component vector of float)
318 0:38 add second child into first child ( temp float)
319 0:38 'n' ( temp float)
322 0:39 vector-scale ( temp 3-component vector of float)
327 0:39 add second child into first child ( temp float)
328 0:39 'n' ( temp float)
331 0:45 Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
332 0:45 Function Parameters:
334 0:46 Function Call: Test1( ( temp void)
335 0:49 move second child to first child ( temp 4-component vector of float)
336 0:49 color: direct index for structure ( temp 4-component vector of float)
337 0:49 'ps_output' ( temp structure{ temp 4-component vector of float color})
345 0:50 Branch: Return with expression
346 0:50 'ps_output' ( temp structure{ temp 4-component vector of float color})
347 0:45 Function Definition: main( ( temp void)
348 0:45 Function Parameters:
351 0:45 move second child to first child ( temp 4-component vector of float)
352 0:? 'color' (layout( location=0) out 4-component vector of float)
353 0:45 color: direct index for structure ( temp 4-component vector of float)
354 0:45 Function Call: @main( ( temp structure{ temp 4-component vector of float color})
358 0:? 'color' (layout( location=0) out 4-component vector of float)
360 // Module Version 10000
361 // Generated by (magic number): 80001
362 // Id's are bound by 112
365 1: ExtInstImport "GLSL.std.450"
366 MemoryModel Logical GLSL450
367 EntryPoint Fragment 4 "main" 109
368 ExecutionMode 4 OriginUpperLeft
373 MemberName 10(PS_OUTPUT) 0 "color"
376 MemberName 15(mystruct) 0 "a"
381 MemberName 30(mystruct2) 0 "a"
382 MemberName 30(mystruct2) 1 "b"
383 MemberName 30(mystruct2) 2 "c"
388 MemberName 80(one) 0 "a"
389 Name 82 "oneNonConst"
391 MemberName 87(two) 0 "a"
392 MemberName 87(two) 1 "b"
393 Name 89 "twoNonConst"
396 Decorate 109(color) Location 0
400 9: TypeVector 8(float) 4
401 10(PS_OUTPUT): TypeStruct 9(fvec4)
402 11: TypeFunction 10(PS_OUTPUT)
403 14: TypeVector 8(float) 2
404 15(mystruct): TypeStruct 14(fvec2)
405 16: TypePointer Function 15(mystruct)
406 18: 8(float) Constant 1065353216
407 19: 8(float) Constant 1073741824
408 20: 14(fvec2) ConstantComposite 18 19
409 21:15(mystruct) ConstantComposite 20
410 23: 8(float) Constant 1077936128
411 24: 8(float) Constant 1082130432
412 25: 14(fvec2) ConstantComposite 23 24
413 26:15(mystruct) ConstantComposite 25
414 27: TypePointer Function 8(float)
415 29: 8(float) Constant 1088421888
416 30(mystruct2): TypeStruct 8(float) 8(float) 8(float)
417 31: TypePointer Function 30(mystruct2)
418 33: 8(float) Constant 1090519040
419 34: 8(float) Constant 1091567616
420 35: 8(float) Constant 1092616192
421 36:30(mystruct2) ConstantComposite 33 34 35
422 38: 8(float) Constant 0
423 39: TypeVector 8(float) 3
425 41: 40(int) Constant 8
426 42: TypeArray 39(fvec3) 41
427 43: TypePointer Function 42
428 45: 8(float) Constant 1058262330
429 46: 39(fvec3) ConstantComposite 45 45 45
430 50: 8(float) Constant 3205745978
431 51: 39(fvec3) ConstantComposite 50 50 50
432 55: 39(fvec3) ConstantComposite 50 50 45
433 59: 39(fvec3) ConstantComposite 50 45 50
434 63: 39(fvec3) ConstantComposite 50 45 45
435 67: 39(fvec3) ConstantComposite 45 50 50
436 71: 39(fvec3) ConstantComposite 45 50 45
437 75: 39(fvec3) ConstantComposite 45 45 50
438 80(one): TypeStruct 39(fvec3)
439 81: TypePointer Function 80(one)
440 87(two): TypeStruct 39(fvec3) 39(fvec3)
441 88: TypePointer Function 87(two)
442 98: TypePointer Function 10(PS_OUTPUT)
444 101: 100(int) Constant 0
445 102: 9(fvec4) ConstantComposite 18 18 18 18
446 103: TypePointer Function 9(fvec4)
447 108: TypePointer Output 9(fvec4)
448 109(color): 108(ptr) Variable Output
449 4(main): 2 Function None 3
451 110:10(PS_OUTPUT) FunctionCall 12(@main()
452 111: 9(fvec4) CompositeExtract 110 0
456 6(Test1(): 2 Function None 3
458 17(test1): 16(ptr) Variable Function
459 22(test2): 16(ptr) Variable Function
460 28(test4): 27(ptr) Variable Function
461 32(test5): 31(ptr) Variable Function
462 37(n): 27(ptr) Variable Function
463 44(a): 43(ptr) Variable Function
464 82(oneNonConst): 81(ptr) Variable Function
465 89(twoNonConst): 88(ptr) Variable Function
471 47: 8(float) Load 37(n)
472 48: 8(float) FAdd 47 18
474 49: 39(fvec3) VectorTimesScalar 46 48
475 52: 8(float) Load 37(n)
476 53: 8(float) FAdd 52 18
478 54: 39(fvec3) VectorTimesScalar 51 53
479 56: 8(float) Load 37(n)
480 57: 8(float) FAdd 56 18
482 58: 39(fvec3) VectorTimesScalar 55 57
483 60: 8(float) Load 37(n)
484 61: 8(float) FAdd 60 18
486 62: 39(fvec3) VectorTimesScalar 59 61
487 64: 8(float) Load 37(n)
488 65: 8(float) FAdd 64 18
490 66: 39(fvec3) VectorTimesScalar 63 65
491 68: 8(float) Load 37(n)
492 69: 8(float) FAdd 68 18
494 70: 39(fvec3) VectorTimesScalar 67 69
495 72: 8(float) Load 37(n)
496 73: 8(float) FAdd 72 18
498 74: 39(fvec3) VectorTimesScalar 71 73
499 76: 8(float) Load 37(n)
500 77: 8(float) FAdd 76 18
502 78: 39(fvec3) VectorTimesScalar 75 77
503 79: 42 CompositeConstruct 49 54 58 62 66 70 74 78
505 83: 8(float) Load 37(n)
506 84: 8(float) FAdd 83 18
508 85: 39(fvec3) VectorTimesScalar 63 84
509 86: 80(one) CompositeConstruct 85
510 Store 82(oneNonConst) 86
511 90: 8(float) Load 37(n)
512 91: 8(float) FAdd 90 18
514 92: 39(fvec3) VectorTimesScalar 63 91
515 93: 8(float) Load 37(n)
516 94: 8(float) FAdd 93 18
518 95: 39(fvec3) VectorTimesScalar 63 94
519 96: 87(two) CompositeConstruct 92 95
520 Store 89(twoNonConst) 96
523 12(@main():10(PS_OUTPUT) Function None 11
525 99(ps_output): 98(ptr) Variable Function
526 97: 2 FunctionCall 6(Test1()
527 104: 103(ptr) AccessChain 99(ps_output) 101
529 105:10(PS_OUTPUT) Load 99(ps_output)