1hlsl.array.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:7  Sequence
60:7    move second child to first child ( temp 4-component vector of float)
70:7      'C' ( global 4-component vector of float)
80:?       Constant:
90:?         1.000000
100:?         2.000000
110:?         3.000000
120:?         4.000000
130:11  Sequence
140:11    move second child to first child ( temp 2-element array of 4-component vector of float)
150:11      'c2' ( global 2-element array of 4-component vector of float)
160:11      Construct vec4 ( temp 2-element array of 4-component vector of float)
170:11        'C' ( global 4-component vector of float)
180:?         Constant:
190:?           1.000000
200:?           2.000000
210:?           3.000000
220:?           4.000000
230:14  Function Definition: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
240:14    Function Parameters:
250:14      'i' ( in int)
260:14      'input' ( in 3-element array of 4-component vector of float)
270:?     Sequence
280:15      Sequence
290:15        move second child to first child ( temp 10-element array of 4-component vector of float)
300:15          'b' ( temp 10-element array of 4-component vector of float)
310:15          Construct vec4 ( temp 10-element array of 4-component vector of float)
320:15            'C' ( global 4-component vector of float)
330:15            'C' ( global 4-component vector of float)
340:15            'C' ( global 4-component vector of float)
350:15            'C' ( global 4-component vector of float)
360:15            'C' ( global 4-component vector of float)
370:15            'C' ( global 4-component vector of float)
380:15            'C' ( global 4-component vector of float)
390:15            'C' ( global 4-component vector of float)
400:15            'C' ( global 4-component vector of float)
410:15            'C' ( global 4-component vector of float)
420:16      Sequence
430:16        move second child to first child ( temp 4-component vector of float)
440:16          'tmp' ( temp 4-component vector of float)
450:16          add ( temp 4-component vector of float)
460:16            add ( temp 4-component vector of float)
470:16              add ( temp 4-component vector of float)
480:16                add ( temp 4-component vector of float)
490:16                  'C' ( global 4-component vector of float)
500:16                  direct index ( temp 4-component vector of float)
510:16                    a1: direct index for structure ( uniform 1-element array of 4-component vector of float)
520:16                      'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
530:16                      Constant:
540:16                        2 (const uint)
550:16                    Constant:
560:16                      0 (const int)
570:16                Constant:
580:16                  1.000000
590:16                  2.000000
600:16                  3.000000
610:16                  4.000000
620:16              indirect index ( temp 4-component vector of float)
630:16                a2: direct index for structure ( uniform 2-element array of 4-component vector of float)
640:16                  'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
650:16                  Constant:
660:16                    3 (const uint)
670:16                'i' ( in int)
680:16            indirect index ( temp 4-component vector of float)
690:16              'c2' ( global 2-element array of 4-component vector of float)
700:16              'i' ( in int)
710:17      Branch: Return with expression
720:17        add ( temp 4-component vector of float)
730:17          add ( temp 4-component vector of float)
740:17            add ( temp 4-component vector of float)
750:17              add ( temp 4-component vector of float)
760:17                add ( temp 4-component vector of float)
770:17                  add ( temp 4-component vector of float)
780:17                    add ( temp 4-component vector of float)
790:17                      direct index ( temp 4-component vector of float)
800:17                        a: direct index for structure ( uniform 4-element array of 4-component vector of float)
810:17                          'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
820:17                          Constant:
830:17                            0 (const uint)
840:17                        Constant:
850:17                          1 (const int)
860:17                      indirect index ( temp 4-component vector of float)
870:17                        a: direct index for structure ( uniform 4-element array of 4-component vector of float)
880:17                          'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
890:17                          Constant:
900:17                            0 (const uint)
910:17                        'i' ( in int)
920:17                    direct index ( temp 4-component vector of float)
930:17                      'input' ( in 3-element array of 4-component vector of float)
940:17                      Constant:
950:17                        2 (const int)
960:17                  indirect index ( temp 4-component vector of float)
970:17                    'input' ( in 3-element array of 4-component vector of float)
980:17                    'i' ( in int)
990:17                direct index ( temp 4-component vector of float)
1000:17                  'b' ( temp 10-element array of 4-component vector of float)
1010:17                  Constant:
1020:17                    5 (const int)
1030:17              indirect index ( temp 4-component vector of float)
1040:17                'b' ( temp 10-element array of 4-component vector of float)
1050:17                'i' ( in int)
1060:17            indirect index ( temp 4-component vector of float)
1070:17              m: direct index for structure ( temp 7-element array of 4-component vector of float)
1080:17                indirect index ( temp structure{ temp 7-element array of 4-component vector of float m})
1090:17                  s: direct index for structure ( uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m})
1100:17                    'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
1110:17                    Constant:
1120:17                      1 (const uint)
1130:17                  'i' ( in int)
1140:17                Constant:
1150:17                  0 (const int)
1160:17              'i' ( in int)
1170:17          'tmp' ( temp 4-component vector of float)
1180:14  Function Definition: PixelShaderFunction( ( temp void)
1190:14    Function Parameters:
1200:?     Sequence
1210:14      move second child to first child ( temp int)
1220:?         'i' ( temp int)
1230:?         'i' (layout( location=0) flat in int)
1240:14      move second child to first child ( temp 3-element array of 4-component vector of float)
1250:?         'input' ( temp 3-element array of 4-component vector of float)
1260:?         'input' (layout( location=1) in 3-element array of 4-component vector of float)
1270:14      move second child to first child ( temp 4-component vector of float)
1280:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1290:14        Function Call: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
1300:?           'i' ( temp int)
1310:?           'input' ( temp 3-element array of 4-component vector of float)
1320:?   Linker Objects
1330:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
1340:?     'C' ( global 4-component vector of float)
1350:?     'c1' ( const 1-element array of 4-component vector of float)
1360:?       1.000000
1370:?       2.000000
1380:?       3.000000
1390:?       4.000000
1400:?     'c2' ( global 2-element array of 4-component vector of float)
1410:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1420:?     'i' (layout( location=0) flat in int)
1430:?     'input' (layout( location=1) in 3-element array of 4-component vector of float)
144
145
146Linked fragment stage:
147
148
149Shader version: 500
150gl_FragCoord origin is upper left
1510:? Sequence
1520:7  Sequence
1530:7    move second child to first child ( temp 4-component vector of float)
1540:7      'C' ( global 4-component vector of float)
1550:?       Constant:
1560:?         1.000000
1570:?         2.000000
1580:?         3.000000
1590:?         4.000000
1600:11  Sequence
1610:11    move second child to first child ( temp 2-element array of 4-component vector of float)
1620:11      'c2' ( global 2-element array of 4-component vector of float)
1630:11      Construct vec4 ( temp 2-element array of 4-component vector of float)
1640:11        'C' ( global 4-component vector of float)
1650:?         Constant:
1660:?           1.000000
1670:?           2.000000
1680:?           3.000000
1690:?           4.000000
1700:14  Function Definition: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
1710:14    Function Parameters:
1720:14      'i' ( in int)
1730:14      'input' ( in 3-element array of 4-component vector of float)
1740:?     Sequence
1750:15      Sequence
1760:15        move second child to first child ( temp 10-element array of 4-component vector of float)
1770:15          'b' ( temp 10-element array of 4-component vector of float)
1780:15          Construct vec4 ( temp 10-element array of 4-component vector of float)
1790:15            'C' ( global 4-component vector of float)
1800:15            'C' ( global 4-component vector of float)
1810:15            'C' ( global 4-component vector of float)
1820:15            'C' ( global 4-component vector of float)
1830:15            'C' ( global 4-component vector of float)
1840:15            'C' ( global 4-component vector of float)
1850:15            'C' ( global 4-component vector of float)
1860:15            'C' ( global 4-component vector of float)
1870:15            'C' ( global 4-component vector of float)
1880:15            'C' ( global 4-component vector of float)
1890:16      Sequence
1900:16        move second child to first child ( temp 4-component vector of float)
1910:16          'tmp' ( temp 4-component vector of float)
1920:16          add ( temp 4-component vector of float)
1930:16            add ( temp 4-component vector of float)
1940:16              add ( temp 4-component vector of float)
1950:16                add ( temp 4-component vector of float)
1960:16                  'C' ( global 4-component vector of float)
1970:16                  direct index ( temp 4-component vector of float)
1980:16                    a1: direct index for structure ( uniform 1-element array of 4-component vector of float)
1990:16                      'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
2000:16                      Constant:
2010:16                        2 (const uint)
2020:16                    Constant:
2030:16                      0 (const int)
2040:16                Constant:
2050:16                  1.000000
2060:16                  2.000000
2070:16                  3.000000
2080:16                  4.000000
2090:16              indirect index ( temp 4-component vector of float)
2100:16                a2: direct index for structure ( uniform 2-element array of 4-component vector of float)
2110:16                  'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
2120:16                  Constant:
2130:16                    3 (const uint)
2140:16                'i' ( in int)
2150:16            indirect index ( temp 4-component vector of float)
2160:16              'c2' ( global 2-element array of 4-component vector of float)
2170:16              'i' ( in int)
2180:17      Branch: Return with expression
2190:17        add ( temp 4-component vector of float)
2200:17          add ( temp 4-component vector of float)
2210:17            add ( temp 4-component vector of float)
2220:17              add ( temp 4-component vector of float)
2230:17                add ( temp 4-component vector of float)
2240:17                  add ( temp 4-component vector of float)
2250:17                    add ( temp 4-component vector of float)
2260:17                      direct index ( temp 4-component vector of float)
2270:17                        a: direct index for structure ( uniform 4-element array of 4-component vector of float)
2280:17                          'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
2290:17                          Constant:
2300:17                            0 (const uint)
2310:17                        Constant:
2320:17                          1 (const int)
2330:17                      indirect index ( temp 4-component vector of float)
2340:17                        a: direct index for structure ( uniform 4-element array of 4-component vector of float)
2350:17                          'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
2360:17                          Constant:
2370:17                            0 (const uint)
2380:17                        'i' ( in int)
2390:17                    direct index ( temp 4-component vector of float)
2400:17                      'input' ( in 3-element array of 4-component vector of float)
2410:17                      Constant:
2420:17                        2 (const int)
2430:17                  indirect index ( temp 4-component vector of float)
2440:17                    'input' ( in 3-element array of 4-component vector of float)
2450:17                    'i' ( in int)
2460:17                direct index ( temp 4-component vector of float)
2470:17                  'b' ( temp 10-element array of 4-component vector of float)
2480:17                  Constant:
2490:17                    5 (const int)
2500:17              indirect index ( temp 4-component vector of float)
2510:17                'b' ( temp 10-element array of 4-component vector of float)
2520:17                'i' ( in int)
2530:17            indirect index ( temp 4-component vector of float)
2540:17              m: direct index for structure ( temp 7-element array of 4-component vector of float)
2550:17                indirect index ( temp structure{ temp 7-element array of 4-component vector of float m})
2560:17                  s: direct index for structure ( uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m})
2570:17                    'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
2580:17                    Constant:
2590:17                      1 (const uint)
2600:17                  'i' ( in int)
2610:17                Constant:
2620:17                  0 (const int)
2630:17              'i' ( in int)
2640:17          'tmp' ( temp 4-component vector of float)
2650:14  Function Definition: PixelShaderFunction( ( temp void)
2660:14    Function Parameters:
2670:?     Sequence
2680:14      move second child to first child ( temp int)
2690:?         'i' ( temp int)
2700:?         'i' (layout( location=0) flat in int)
2710:14      move second child to first child ( temp 3-element array of 4-component vector of float)
2720:?         'input' ( temp 3-element array of 4-component vector of float)
2730:?         'input' (layout( location=1) in 3-element array of 4-component vector of float)
2740:14      move second child to first child ( temp 4-component vector of float)
2750:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
2760:14        Function Call: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
2770:?           'i' ( temp int)
2780:?           'input' ( temp 3-element array of 4-component vector of float)
2790:?   Linker Objects
2800:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s,  uniform 1-element array of 4-component vector of float a1,  uniform 2-element array of 4-component vector of float a2})
2810:?     'C' ( global 4-component vector of float)
2820:?     'c1' ( const 1-element array of 4-component vector of float)
2830:?       1.000000
2840:?       2.000000
2850:?       3.000000
2860:?       4.000000
2870:?     'c2' ( global 2-element array of 4-component vector of float)
2880:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
2890:?     'i' (layout( location=0) flat in int)
2900:?     'input' (layout( location=1) in 3-element array of 4-component vector of float)
291
292// Module Version 10000
293// Generated by (magic number): 80007
294// Id's are bound by 126
295
296                              Capability Shader
297               1:             ExtInstImport  "GLSL.std.450"
298                              MemoryModel Logical GLSL450
299                              EntryPoint Fragment 4  "PixelShaderFunction" 112 116 119
300                              ExecutionMode 4 OriginUpperLeft
301                              Source HLSL 500
302                              Name 4  "PixelShaderFunction"
303                              Name 17  "@PixelShaderFunction(i1;vf4[3];"
304                              Name 15  "i"
305                              Name 16  "input"
306                              Name 20  "C"
307                              Name 29  "c2"
308                              Name 35  "b"
309                              Name 48  "tmp"
310                              Name 54  ""
311                              MemberName 54 0  "m"
312                              Name 60  "$Global"
313                              MemberName 60($Global) 0  "a"
314                              MemberName 60($Global) 1  "s"
315                              MemberName 60($Global) 2  "a1"
316                              MemberName 60($Global) 3  "a2"
317                              Name 62  ""
318                              Name 110  "i"
319                              Name 112  "i"
320                              Name 114  "input"
321                              Name 116  "input"
322                              Name 119  "@entryPointOutput"
323                              Name 120  "param"
324                              Name 122  "param"
325                              Decorate 51 ArrayStride 16
326                              Decorate 53 ArrayStride 16
327                              MemberDecorate 54 0 Offset 0
328                              Decorate 56 ArrayStride 112
329                              Decorate 58 ArrayStride 16
330                              Decorate 59 ArrayStride 16
331                              MemberDecorate 60($Global) 0 Offset 0
332                              MemberDecorate 60($Global) 1 Offset 64
333                              MemberDecorate 60($Global) 2 Offset 1296
334                              MemberDecorate 60($Global) 3 Offset 1312
335                              Decorate 60($Global) Block
336                              Decorate 62 DescriptorSet 0
337                              Decorate 112(i) Flat
338                              Decorate 112(i) Location 0
339                              Decorate 116(input) Location 1
340                              Decorate 119(@entryPointOutput) Location 0
341               2:             TypeVoid
342               3:             TypeFunction 2
343               6:             TypeInt 32 1
344               7:             TypePointer Function 6(int)
345               8:             TypeFloat 32
346               9:             TypeVector 8(float) 4
347              10:             TypeInt 32 0
348              11:     10(int) Constant 3
349              12:             TypeArray 9(fvec4) 11
350              13:             TypePointer Function 12
351              14:             TypeFunction 9(fvec4) 7(ptr) 13(ptr)
352              19:             TypePointer Private 9(fvec4)
353           20(C):     19(ptr) Variable Private
354              21:    8(float) Constant 1065353216
355              22:    8(float) Constant 1073741824
356              23:    8(float) Constant 1077936128
357              24:    8(float) Constant 1082130432
358              25:    9(fvec4) ConstantComposite 21 22 23 24
359              26:     10(int) Constant 2
360              27:             TypeArray 9(fvec4) 26
361              28:             TypePointer Private 27
362          29(c2):     28(ptr) Variable Private
363              32:     10(int) Constant 10
364              33:             TypeArray 9(fvec4) 32
365              34:             TypePointer Function 33
366              47:             TypePointer Function 9(fvec4)
367              50:     10(int) Constant 4
368              51:             TypeArray 9(fvec4) 50
369              52:     10(int) Constant 7
370              53:             TypeArray 9(fvec4) 52
371              54:             TypeStruct 53
372              55:     10(int) Constant 11
373              56:             TypeArray 54(struct) 55
374              57:     10(int) Constant 1
375              58:             TypeArray 9(fvec4) 57
376              59:             TypeArray 9(fvec4) 26
377     60($Global):             TypeStruct 51 56 58 59
378              61:             TypePointer Uniform 60($Global)
379              62:     61(ptr) Variable Uniform
380              63:      6(int) Constant 2
381              64:      6(int) Constant 0
382              65:             TypePointer Uniform 9(fvec4)
383              70:      6(int) Constant 3
384              79:      6(int) Constant 1
385              93:      6(int) Constant 5
386             111:             TypePointer Input 6(int)
387          112(i):    111(ptr) Variable Input
388             115:             TypePointer Input 12
389      116(input):    115(ptr) Variable Input
390             118:             TypePointer Output 9(fvec4)
391119(@entryPointOutput):    118(ptr) Variable Output
392             125:          58 ConstantComposite 25
3934(PixelShaderFunction):           2 Function None 3
394               5:             Label
395          110(i):      7(ptr) Variable Function
396      114(input):     13(ptr) Variable Function
397      120(param):      7(ptr) Variable Function
398      122(param):     13(ptr) Variable Function
399                              Store 20(C) 25
400              30:    9(fvec4) Load 20(C)
401              31:          27 CompositeConstruct 30 25
402                              Store 29(c2) 31
403             113:      6(int) Load 112(i)
404                              Store 110(i) 113
405             117:          12 Load 116(input)
406                              Store 114(input) 117
407             121:      6(int) Load 110(i)
408                              Store 120(param) 121
409             123:          12 Load 114(input)
410                              Store 122(param) 123
411             124:    9(fvec4) FunctionCall 17(@PixelShaderFunction(i1;vf4[3];) 120(param) 122(param)
412                              Store 119(@entryPointOutput) 124
413                              Return
414                              FunctionEnd
41517(@PixelShaderFunction(i1;vf4[3];):    9(fvec4) Function None 14
416           15(i):      7(ptr) FunctionParameter
417       16(input):     13(ptr) FunctionParameter
418              18:             Label
419           35(b):     34(ptr) Variable Function
420         48(tmp):     47(ptr) Variable Function
421              36:    9(fvec4) Load 20(C)
422              37:    9(fvec4) Load 20(C)
423              38:    9(fvec4) Load 20(C)
424              39:    9(fvec4) Load 20(C)
425              40:    9(fvec4) Load 20(C)
426              41:    9(fvec4) Load 20(C)
427              42:    9(fvec4) Load 20(C)
428              43:    9(fvec4) Load 20(C)
429              44:    9(fvec4) Load 20(C)
430              45:    9(fvec4) Load 20(C)
431              46:          33 CompositeConstruct 36 37 38 39 40 41 42 43 44 45
432                              Store 35(b) 46
433              49:    9(fvec4) Load 20(C)
434              66:     65(ptr) AccessChain 62 63 64
435              67:    9(fvec4) Load 66
436              68:    9(fvec4) FAdd 49 67
437              69:    9(fvec4) FAdd 68 25
438              71:      6(int) Load 15(i)
439              72:     65(ptr) AccessChain 62 70 71
440              73:    9(fvec4) Load 72
441              74:    9(fvec4) FAdd 69 73
442              75:      6(int) Load 15(i)
443              76:     19(ptr) AccessChain 29(c2) 75
444              77:    9(fvec4) Load 76
445              78:    9(fvec4) FAdd 74 77
446                              Store 48(tmp) 78
447              80:     65(ptr) AccessChain 62 64 79
448              81:    9(fvec4) Load 80
449              82:      6(int) Load 15(i)
450              83:     65(ptr) AccessChain 62 64 82
451              84:    9(fvec4) Load 83
452              85:    9(fvec4) FAdd 81 84
453              86:     47(ptr) AccessChain 16(input) 63
454              87:    9(fvec4) Load 86
455              88:    9(fvec4) FAdd 85 87
456              89:      6(int) Load 15(i)
457              90:     47(ptr) AccessChain 16(input) 89
458              91:    9(fvec4) Load 90
459              92:    9(fvec4) FAdd 88 91
460              94:     47(ptr) AccessChain 35(b) 93
461              95:    9(fvec4) Load 94
462              96:    9(fvec4) FAdd 92 95
463              97:      6(int) Load 15(i)
464              98:     47(ptr) AccessChain 35(b) 97
465              99:    9(fvec4) Load 98
466             100:    9(fvec4) FAdd 96 99
467             101:      6(int) Load 15(i)
468             102:      6(int) Load 15(i)
469             103:     65(ptr) AccessChain 62 79 101 64 102
470             104:    9(fvec4) Load 103
471             105:    9(fvec4) FAdd 100 104
472             106:    9(fvec4) Load 48(tmp)
473             107:    9(fvec4) FAdd 105 106
474                              ReturnValue 107
475                              FunctionEnd
476