• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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): 80007
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               2:             TypeVoid
221               3:             TypeFunction 2
222               6:             TypeFloat 32
223               7:             TypeFunction 6(float)
224              12:             TypePointer Private 6(float)
225          13(h3):     12(ptr) Variable Private
226              14:    6(float) Constant 1077936128
227           15(f):     12(ptr) Variable Private
228              16:    6(float) Constant 1092616192
229              17:             TypePointer Function 6(float)
230              23:             TypeVector 6(float) 4
231              24:             TypePointer Input 23(fvec4)
23225(gl_FragCoord):     24(ptr) Variable Input
233              26:             TypeInt 32 0
234              27:     26(int) Constant 1
235              28:             TypePointer Input 6(float)
236              34:    6(float) Constant 1073741824
237         37(cin):     28(ptr) Variable Input
238              56:             TypePointer Output 6(float)
239        57(cout):     56(ptr) Variable Output
240          67(a1):     12(ptr) Variable Private
241          68(a2):     12(ptr) Variable Private
242         4(main):           2 Function None 3
243               5:             Label
244           18(g):     17(ptr) Variable Function
245                              Store 13(h3) 14
246                              Store 15(f) 16
247              19:    6(float) FunctionCall 8(foo()
248                              Store 18(g) 19
249              20:    6(float) Load 18(g)
250              21:    6(float) Load 15(f)
251              22:    6(float) FAdd 21 20
252                              Store 15(f) 22
253              29:     28(ptr) AccessChain 25(gl_FragCoord) 27
254              30:    6(float) Load 29
255              31:    6(float) Load 15(f)
256              32:    6(float) FAdd 31 30
257                              Store 15(f) 32
258                              Return
259                              FunctionEnd
260         8(foo():    6(float) Function None 7
261               9:             Label
262          33(h2):     17(ptr) Variable Function
263          40(g2):     17(ptr) Variable Function
264              35:    6(float) Load 15(f)
265              36:    6(float) FMul 34 35
266              38:    6(float) Load 37(cin)
267              39:    6(float) FAdd 36 38
268                              Store 33(h2) 39
269              41:    6(float) FunctionCall 10(bar()
270                              Store 40(g2) 41
271              42:    6(float) Load 33(h2)
272              43:    6(float) Load 40(g2)
273              44:    6(float) FAdd 42 43
274              45:     28(ptr) AccessChain 25(gl_FragCoord) 27
275              46:    6(float) Load 45
276              47:    6(float) FAdd 44 46
277                              ReturnValue 47
278                              FunctionEnd
279        10(bar():    6(float) Function None 7
280              11:             Label
281          53(g3):     17(ptr) Variable Function
282              50:    6(float) Load 15(f)
283              51:    6(float) Load 13(h3)
284              52:    6(float) FMul 51 50
285                              Store 13(h3) 52
286              54:    6(float) Load 13(h3)
287              55:    6(float) FMul 34 54
288                              Store 53(g3) 55
289              58:    6(float) Load 53(g3)
290                              Store 57(cout) 58
291              59:    6(float) Load 13(h3)
292              60:    6(float) Load 53(g3)
293              61:    6(float) FAdd 59 60
294              62:     28(ptr) AccessChain 25(gl_FragCoord) 27
295              63:    6(float) Load 62
296              64:    6(float) FAdd 61 63
297                              ReturnValue 64
298                              FunctionEnd
299