1spv.unit1.frag
2Shader version: 460
3gl_FragCoord origin is upper left
40:? Sequence
50:10  Function Definition: main( ( global void)
60:10    Function Parameters:
70:12    Sequence
80:12      move second child to first child ( temp highp float)
90:12        'f' ( global highp float)
100:12        Constant:
110:12          10.000000
120:13      Sequence
130:13        move second child to first child ( temp highp float)
140:13          'g' ( temp highp float)
150:13          Function Call: foo( ( global highp float)
160:14      add second child into first child ( temp highp float)
170:14        'f' ( global highp float)
180:14        'g' ( temp highp float)
190:15      add second child into first child ( temp highp float)
200:15        'f' ( global highp float)
210:15        direct index ( temp highp float)
220:15          'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord)
230:15          Constant:
240:15            1 (const int)
250:?   Linker Objects
260:?     'f' ( global highp float)
270:?     'a1' ( global highp float)
280:?     'cout' ( out highp float)
29
30spv.unit2.frag
31Shader version: 410
32gl_FragCoord origin is upper left
330:? Sequence
340:12  Function Definition: foo( ( global highp float)
350:12    Function Parameters:
360:14    Sequence
370:14      Sequence
380:14        move second child to first child ( temp highp float)
390:14          'h2' ( temp highp float)
400:14          add ( temp highp float)
410:14            component-wise multiply ( temp highp float)
420:14              Constant:
430:14                2.000000
440:14              'f' ( global highp float)
450:14            'cin' ( smooth in highp float)
460:15      Sequence
470:15        move second child to first child ( temp highp float)
480:15          'g2' ( temp highp float)
490:15          Function Call: bar( ( global highp float)
500:16      Branch: Return with expression
510:16        add ( temp highp float)
520:16          add ( temp highp float)
530:16            'h2' ( temp highp float)
540:16            'g2' ( temp highp float)
550:16          direct index ( temp highp float)
560:16            'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord)
570:16            Constant:
580:16              1 (const int)
590:?   Linker Objects
600:?     'a2' ( global highp float)
610:?     'f' ( global highp float)
620:?     'cout' ( out highp float)
630:?     'cin' ( smooth in highp float)
64
65spv.unit3.frag
66Shader version: 460
67gl_FragCoord origin is upper left
680:? Sequence
690:4  Sequence
700:4    move second child to first child ( temp highp float)
710:4      'h3' ( global highp float)
720:4      Constant:
730:4        3.000000
740:9  Function Definition: bar( ( global highp float)
750:9    Function Parameters:
760:11    Sequence
770:11      multiply second child into first child ( temp highp float)
780:11        'h3' ( global highp float)
790:11        'f' ( global highp float)
800:12      Sequence
810:12        move second child to first child ( temp highp float)
820:12          'g3' ( temp highp float)
830:12          component-wise multiply ( temp highp float)
840:12            Constant:
850:12              2.000000
860:12            'h3' ( global highp float)
870:13      move second child to first child ( temp highp float)
880:13        'cout' ( out highp float)
890:13        'g3' ( temp highp float)
900:14      Branch: Return with expression
910:14        add ( temp highp float)
920:14          add ( temp highp float)
930:14            'h3' ( global highp float)
940:14            'g3' ( temp highp float)
950:14          direct index ( temp highp float)
960:14            'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord)
970:14            Constant:
980:14              1 (const int)
990:?   Linker Objects
1000:?     'f' ( global highp float)
1010:?     'h3' ( global highp float)
1020:?     'cout' ( out highp float)
1030:?     'cin' ( smooth in highp float)
104
105
106Linked fragment stage:
107
108
109Shader version: 460
110gl_FragCoord origin is upper left
1110:? Sequence
1120:10  Function Definition: main( ( global void)
1130:10    Function Parameters:
1140:12    Sequence
1150:12      move second child to first child ( temp highp float)
1160:12        'f' ( global highp float)
1170:12        Constant:
1180:12          10.000000
1190:13      Sequence
1200:13        move second child to first child ( temp highp float)
1210:13          'g' ( temp highp float)
1220:13          Function Call: foo( ( global highp float)
1230:14      add second child into first child ( temp highp float)
1240:14        'f' ( global highp float)
1250:14        'g' ( temp highp float)
1260:15      add second child into first child ( temp highp float)
1270:15        'f' ( global highp float)
1280:15        direct index ( temp highp float)
1290:15          'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord)
1300:15          Constant:
1310:15            1 (const int)
1320:12  Function Definition: foo( ( global highp float)
1330:12    Function Parameters:
1340:14    Sequence
1350:14      Sequence
1360:14        move second child to first child ( temp highp float)
1370:14          'h2' ( temp highp float)
1380:14          add ( temp highp float)
1390:14            component-wise multiply ( temp highp float)
1400:14              Constant:
1410:14                2.000000
1420:14              'f' ( global highp float)
1430:14            'cin' ( smooth in highp float)
1440:15      Sequence
1450:15        move second child to first child ( temp highp float)
1460:15          'g2' ( temp highp float)
1470:15          Function Call: bar( ( global highp float)
1480:16      Branch: Return with expression
1490:16        add ( temp highp float)
1500:16          add ( temp highp float)
1510:16            'h2' ( temp highp float)
1520:16            'g2' ( temp highp float)
1530:16          direct index ( temp highp float)
1540:16            'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord)
1550:16            Constant:
1560:16              1 (const int)
1570:4  Sequence
1580:4    move second child to first child ( temp highp float)
1590:4      'h3' ( global highp float)
1600:4      Constant:
1610:4        3.000000
1620:9  Function Definition: bar( ( global highp float)
1630:9    Function Parameters:
1640:11    Sequence
1650:11      multiply second child into first child ( temp highp float)
1660:11        'h3' ( global highp float)
1670:11        'f' ( global highp float)
1680:12      Sequence
1690:12        move second child to first child ( temp highp float)
1700:12          'g3' ( temp highp float)
1710:12          component-wise multiply ( temp highp float)
1720:12            Constant:
1730:12              2.000000
1740:12            'h3' ( global highp float)
1750:13      move second child to first child ( temp highp float)
1760:13        'cout' ( out highp float)
1770:13        'g3' ( temp highp float)
1780:14      Branch: Return with expression
1790:14        add ( temp highp float)
1800:14          add ( temp highp float)
1810:14            'h3' ( global highp float)
1820:14            'g3' ( temp highp float)
1830:14          direct index ( temp highp float)
1840:14            'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord)
1850:14            Constant:
1860:14              1 (const int)
1870:?   Linker Objects
1880:?     'f' ( global highp float)
1890:?     'a1' ( global highp float)
1900:?     'cout' ( out highp float)
1910:?     'a2' ( global highp float)
1920:?     'cin' ( smooth in highp float)
1930:?     'h3' ( global highp float)
194
195// Module Version 10000
196// Generated by (magic number): 8000a
197// Id's are bound by 69
198
199                              Capability Shader
200               1:             ExtInstImport  "GLSL.std.450"
201                              MemoryModel Logical GLSL450
202                              EntryPoint Fragment 4  "main" 25 37 57
203                              ExecutionMode 4 OriginUpperLeft
204                              Source GLSL 460
205                              Name 4  "main"
206                              Name 8  "foo("
207                              Name 10  "bar("
208                              Name 13  "h3"
209                              Name 15  "f"
210                              Name 18  "g"
211                              Name 25  "gl_FragCoord"
212                              Name 33  "h2"
213                              Name 37  "cin"
214                              Name 40  "g2"
215                              Name 53  "g3"
216                              Name 57  "cout"
217                              Name 67  "a1"
218                              Name 68  "a2"
219                              Decorate 25(gl_FragCoord) BuiltIn FragCoord
220                              Decorate 37(cin) Location 0
221                              Decorate 57(cout) Location 0
222               2:             TypeVoid
223               3:             TypeFunction 2
224               6:             TypeFloat 32
225               7:             TypeFunction 6(float)
226              12:             TypePointer Private 6(float)
227          13(h3):     12(ptr) Variable Private
228              14:    6(float) Constant 1077936128
229           15(f):     12(ptr) Variable Private
230              16:    6(float) Constant 1092616192
231              17:             TypePointer Function 6(float)
232              23:             TypeVector 6(float) 4
233              24:             TypePointer Input 23(fvec4)
23425(gl_FragCoord):     24(ptr) Variable Input
235              26:             TypeInt 32 0
236              27:     26(int) Constant 1
237              28:             TypePointer Input 6(float)
238              34:    6(float) Constant 1073741824
239         37(cin):     28(ptr) Variable Input
240              56:             TypePointer Output 6(float)
241        57(cout):     56(ptr) Variable Output
242          67(a1):     12(ptr) Variable Private
243          68(a2):     12(ptr) Variable Private
244         4(main):           2 Function None 3
245               5:             Label
246           18(g):     17(ptr) Variable Function
247                              Store 13(h3) 14
248                              Store 15(f) 16
249              19:    6(float) FunctionCall 8(foo()
250                              Store 18(g) 19
251              20:    6(float) Load 18(g)
252              21:    6(float) Load 15(f)
253              22:    6(float) FAdd 21 20
254                              Store 15(f) 22
255              29:     28(ptr) AccessChain 25(gl_FragCoord) 27
256              30:    6(float) Load 29
257              31:    6(float) Load 15(f)
258              32:    6(float) FAdd 31 30
259                              Store 15(f) 32
260                              Return
261                              FunctionEnd
262         8(foo():    6(float) Function None 7
263               9:             Label
264          33(h2):     17(ptr) Variable Function
265          40(g2):     17(ptr) Variable Function
266              35:    6(float) Load 15(f)
267              36:    6(float) FMul 34 35
268              38:    6(float) Load 37(cin)
269              39:    6(float) FAdd 36 38
270                              Store 33(h2) 39
271              41:    6(float) FunctionCall 10(bar()
272                              Store 40(g2) 41
273              42:    6(float) Load 33(h2)
274              43:    6(float) Load 40(g2)
275              44:    6(float) FAdd 42 43
276              45:     28(ptr) AccessChain 25(gl_FragCoord) 27
277              46:    6(float) Load 45
278              47:    6(float) FAdd 44 46
279                              ReturnValue 47
280                              FunctionEnd
281        10(bar():    6(float) Function None 7
282              11:             Label
283          53(g3):     17(ptr) Variable Function
284              50:    6(float) Load 15(f)
285              51:    6(float) Load 13(h3)
286              52:    6(float) FMul 51 50
287                              Store 13(h3) 52
288              54:    6(float) Load 13(h3)
289              55:    6(float) FMul 34 54
290                              Store 53(g3) 55
291              58:    6(float) Load 53(g3)
292                              Store 57(cout) 58
293              59:    6(float) Load 13(h3)
294              60:    6(float) Load 53(g3)
295              61:    6(float) FAdd 59 60
296              62:     28(ptr) AccessChain 25(gl_FragCoord) 27
297              63:    6(float) Load 62
298              64:    6(float) FAdd 61 63
299                              ReturnValue 64
300                              FunctionEnd
301