• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.constructArray.vert
2Shader version: 500
30:? Sequence
40:2  Function Definition: @main( ( temp 4-component vector of float)
50:2    Function Parameters:
60:?     Sequence
70:4      Sequence
80:4        move second child to first child ( temp 2-element array of 4-component vector of float)
90:4          'float4_array_times' ( temp 2-element array of 4-component vector of float)
100:4          Construct structure ( temp 2-element array of 4-component vector of float)
110:4            Convert int to float ( temp 4-component vector of float)
120:4              direct index ( temp 4-component vector of int)
130:4                'int4_array' ( temp 3-element array of 4-component vector of int)
140:4                Constant:
150:4                  0 (const int)
160:4            Convert int to float ( temp 4-component vector of float)
170:4              direct index ( temp 4-component vector of int)
180:4                'int4_array' ( temp 3-element array of 4-component vector of int)
190:4                Constant:
200:4                  1 (const int)
210:5      Sequence
220:5        move second child to first child ( temp 4-element array of 2-component vector of float)
230:5          'float2_array_times2' ( temp 4-element array of 2-component vector of float)
240:5          Construct structure ( temp 4-element array of 2-component vector of float)
250:5            Convert int to float ( temp 2-component vector of float)
260:5              Construct ivec2 ( temp 2-component vector of int)
270:5                direct index ( temp int)
280:5                  direct index ( temp 4-component vector of int)
290:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
300:5                    Constant:
310:5                      0 (const int)
320:5                  Constant:
330:5                    0 (const int)
340:5                direct index ( temp int)
350:5                  direct index ( temp 4-component vector of int)
360:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
370:5                    Constant:
380:5                      0 (const int)
390:5                  Constant:
400:5                    1 (const int)
410:5            Convert int to float ( temp 2-component vector of float)
420:5              Construct ivec2 ( temp 2-component vector of int)
430:5                direct index ( temp int)
440:5                  direct index ( temp 4-component vector of int)
450:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
460:5                    Constant:
470:5                      0 (const int)
480:5                  Constant:
490:5                    2 (const int)
500:5                direct index ( temp int)
510:5                  direct index ( temp 4-component vector of int)
520:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
530:5                    Constant:
540:5                      0 (const int)
550:5                  Constant:
560:5                    3 (const int)
570:5            Convert int to float ( temp 2-component vector of float)
580:5              Construct ivec2 ( temp 2-component vector of int)
590:5                direct index ( temp int)
600:5                  direct index ( temp 4-component vector of int)
610:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
620:5                    Constant:
630:5                      1 (const int)
640:5                  Constant:
650:5                    0 (const int)
660:5                direct index ( temp int)
670:5                  direct index ( temp 4-component vector of int)
680:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
690:5                    Constant:
700:5                      1 (const int)
710:5                  Constant:
720:5                    1 (const int)
730:5            Convert int to float ( temp 2-component vector of float)
740:5              Construct ivec2 ( temp 2-component vector of int)
750:5                direct index ( temp int)
760:5                  direct index ( temp 4-component vector of int)
770:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
780:5                    Constant:
790:5                      1 (const int)
800:5                  Constant:
810:5                    2 (const int)
820:5                direct index ( temp int)
830:5                  direct index ( temp 4-component vector of int)
840:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
850:5                    Constant:
860:5                      1 (const int)
870:5                  Constant:
880:5                    3 (const int)
890:6      Sequence
900:6        move second child to first child ( temp 2-element array of 4-component vector of int)
910:6          'int4_array2' ( temp 2-element array of 4-component vector of int)
920:6          Construct structure ( temp 2-element array of 4-component vector of int)
930:6            direct index ( temp 4-component vector of int)
940:6              'int4_array' ( temp 3-element array of 4-component vector of int)
950:6              Constant:
960:6                0 (const int)
970:6            direct index ( temp 4-component vector of int)
980:6              'int4_array' ( temp 3-element array of 4-component vector of int)
990:6              Constant:
1000:6                1 (const int)
1010:7      Sequence
1020:7        move second child to first child ( temp 2-element array of int)
1030:7          'int1_array' ( temp 2-element array of int)
1040:7          Construct structure ( temp 2-element array of int)
1050:7            direct index ( temp int)
1060:7              direct index ( temp 4-component vector of int)
1070:7                'int4_array' ( temp 3-element array of 4-component vector of int)
1080:7                Constant:
1090:7                  0 (const int)
1100:7              Constant:
1110:7                0 (const int)
1120:7            direct index ( temp int)
1130:7              direct index ( temp 4-component vector of int)
1140:7                'int4_array' ( temp 3-element array of 4-component vector of int)
1150:7                Constant:
1160:7                  0 (const int)
1170:7              Constant:
1180:7                1 (const int)
1190:9      Branch: Return with expression
1200:9        Constant:
1210:9          0.000000
1220:9          0.000000
1230:9          0.000000
1240:9          0.000000
1250:2  Function Definition: main( ( temp void)
1260:2    Function Parameters:
1270:?     Sequence
1280:2      move second child to first child ( temp 4-component vector of float)
1290:?         '@entryPointOutput' ( out 4-component vector of float Position)
1300:2        Function Call: @main( ( temp 4-component vector of float)
1310:?   Linker Objects
1320:?     '@entryPointOutput' ( out 4-component vector of float Position)
133
134
135Linked vertex stage:
136
137
138Shader version: 500
1390:? Sequence
1400:2  Function Definition: @main( ( temp 4-component vector of float)
1410:2    Function Parameters:
1420:?     Sequence
1430:4      Sequence
1440:4        move second child to first child ( temp 2-element array of 4-component vector of float)
1450:4          'float4_array_times' ( temp 2-element array of 4-component vector of float)
1460:4          Construct structure ( temp 2-element array of 4-component vector of float)
1470:4            Convert int to float ( temp 4-component vector of float)
1480:4              direct index ( temp 4-component vector of int)
1490:4                'int4_array' ( temp 3-element array of 4-component vector of int)
1500:4                Constant:
1510:4                  0 (const int)
1520:4            Convert int to float ( temp 4-component vector of float)
1530:4              direct index ( temp 4-component vector of int)
1540:4                'int4_array' ( temp 3-element array of 4-component vector of int)
1550:4                Constant:
1560:4                  1 (const int)
1570:5      Sequence
1580:5        move second child to first child ( temp 4-element array of 2-component vector of float)
1590:5          'float2_array_times2' ( temp 4-element array of 2-component vector of float)
1600:5          Construct structure ( temp 4-element array of 2-component vector of float)
1610:5            Convert int to float ( temp 2-component vector of float)
1620:5              Construct ivec2 ( temp 2-component vector of int)
1630:5                direct index ( temp int)
1640:5                  direct index ( temp 4-component vector of int)
1650:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
1660:5                    Constant:
1670:5                      0 (const int)
1680:5                  Constant:
1690:5                    0 (const int)
1700:5                direct index ( temp int)
1710:5                  direct index ( temp 4-component vector of int)
1720:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
1730:5                    Constant:
1740:5                      0 (const int)
1750:5                  Constant:
1760:5                    1 (const int)
1770:5            Convert int to float ( temp 2-component vector of float)
1780:5              Construct ivec2 ( temp 2-component vector of int)
1790:5                direct index ( temp int)
1800:5                  direct index ( temp 4-component vector of int)
1810:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
1820:5                    Constant:
1830:5                      0 (const int)
1840:5                  Constant:
1850:5                    2 (const int)
1860:5                direct index ( temp int)
1870:5                  direct index ( temp 4-component vector of int)
1880:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
1890:5                    Constant:
1900:5                      0 (const int)
1910:5                  Constant:
1920:5                    3 (const int)
1930:5            Convert int to float ( temp 2-component vector of float)
1940:5              Construct ivec2 ( temp 2-component vector of int)
1950:5                direct index ( temp int)
1960:5                  direct index ( temp 4-component vector of int)
1970:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
1980:5                    Constant:
1990:5                      1 (const int)
2000:5                  Constant:
2010:5                    0 (const int)
2020:5                direct index ( temp int)
2030:5                  direct index ( temp 4-component vector of int)
2040:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
2050:5                    Constant:
2060:5                      1 (const int)
2070:5                  Constant:
2080:5                    1 (const int)
2090:5            Convert int to float ( temp 2-component vector of float)
2100:5              Construct ivec2 ( temp 2-component vector of int)
2110:5                direct index ( temp int)
2120:5                  direct index ( temp 4-component vector of int)
2130:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
2140:5                    Constant:
2150:5                      1 (const int)
2160:5                  Constant:
2170:5                    2 (const int)
2180:5                direct index ( temp int)
2190:5                  direct index ( temp 4-component vector of int)
2200:5                    'int4_array' ( temp 3-element array of 4-component vector of int)
2210:5                    Constant:
2220:5                      1 (const int)
2230:5                  Constant:
2240:5                    3 (const int)
2250:6      Sequence
2260:6        move second child to first child ( temp 2-element array of 4-component vector of int)
2270:6          'int4_array2' ( temp 2-element array of 4-component vector of int)
2280:6          Construct structure ( temp 2-element array of 4-component vector of int)
2290:6            direct index ( temp 4-component vector of int)
2300:6              'int4_array' ( temp 3-element array of 4-component vector of int)
2310:6              Constant:
2320:6                0 (const int)
2330:6            direct index ( temp 4-component vector of int)
2340:6              'int4_array' ( temp 3-element array of 4-component vector of int)
2350:6              Constant:
2360:6                1 (const int)
2370:7      Sequence
2380:7        move second child to first child ( temp 2-element array of int)
2390:7          'int1_array' ( temp 2-element array of int)
2400:7          Construct structure ( temp 2-element array of int)
2410:7            direct index ( temp int)
2420:7              direct index ( temp 4-component vector of int)
2430:7                'int4_array' ( temp 3-element array of 4-component vector of int)
2440:7                Constant:
2450:7                  0 (const int)
2460:7              Constant:
2470:7                0 (const int)
2480:7            direct index ( temp int)
2490:7              direct index ( temp 4-component vector of int)
2500:7                'int4_array' ( temp 3-element array of 4-component vector of int)
2510:7                Constant:
2520:7                  0 (const int)
2530:7              Constant:
2540:7                1 (const int)
2550:9      Branch: Return with expression
2560:9        Constant:
2570:9          0.000000
2580:9          0.000000
2590:9          0.000000
2600:9          0.000000
2610:2  Function Definition: main( ( temp void)
2620:2    Function Parameters:
2630:?     Sequence
2640:2      move second child to first child ( temp 4-component vector of float)
2650:?         '@entryPointOutput' ( out 4-component vector of float Position)
2660:2        Function Call: @main( ( temp 4-component vector of float)
2670:?   Linker Objects
2680:?     '@entryPointOutput' ( out 4-component vector of float Position)
269
270// Module Version 10000
271// Generated by (magic number): 8000a
272// Id's are bound by 89
273
274                              Capability Shader
275               1:             ExtInstImport  "GLSL.std.450"
276                              MemoryModel Logical GLSL450
277                              EntryPoint Vertex 4  "main" 87
278                              Source HLSL 500
279                              Name 4  "main"
280                              Name 9  "@main("
281                              Name 15  "float4_array_times"
282                              Name 21  "int4_array"
283                              Name 36  "float2_array_times2"
284                              Name 68  "int4_array2"
285                              Name 76  "int1_array"
286                              Name 87  "@entryPointOutput"
287                              Decorate 87(@entryPointOutput) BuiltIn Position
288               2:             TypeVoid
289               3:             TypeFunction 2
290               6:             TypeFloat 32
291               7:             TypeVector 6(float) 4
292               8:             TypeFunction 7(fvec4)
293              11:             TypeInt 32 0
294              12:     11(int) Constant 2
295              13:             TypeArray 7(fvec4) 12
296              14:             TypePointer Function 13
297              16:             TypeInt 32 1
298              17:             TypeVector 16(int) 4
299              18:     11(int) Constant 3
300              19:             TypeArray 17(ivec4) 18
301              20:             TypePointer Function 19
302              22:     16(int) Constant 0
303              23:             TypePointer Function 17(ivec4)
304              27:     16(int) Constant 1
305              32:             TypeVector 6(float) 2
306              33:     11(int) Constant 4
307              34:             TypeArray 32(fvec2) 33
308              35:             TypePointer Function 34
309              37:     11(int) Constant 0
310              38:             TypePointer Function 16(int)
311              41:     11(int) Constant 1
312              44:             TypeVector 16(int) 2
313              66:             TypeArray 17(ivec4) 12
314              67:             TypePointer Function 66
315              74:             TypeArray 16(int) 12
316              75:             TypePointer Function 74
317              82:    6(float) Constant 0
318              83:    7(fvec4) ConstantComposite 82 82 82 82
319              86:             TypePointer Output 7(fvec4)
32087(@entryPointOutput):     86(ptr) Variable Output
321         4(main):           2 Function None 3
322               5:             Label
323              88:    7(fvec4) FunctionCall 9(@main()
324                              Store 87(@entryPointOutput) 88
325                              Return
326                              FunctionEnd
327       9(@main():    7(fvec4) Function None 8
328              10:             Label
32915(float4_array_times):     14(ptr) Variable Function
330  21(int4_array):     20(ptr) Variable Function
33136(float2_array_times2):     35(ptr) Variable Function
332 68(int4_array2):     67(ptr) Variable Function
333  76(int1_array):     75(ptr) Variable Function
334              24:     23(ptr) AccessChain 21(int4_array) 22
335              25:   17(ivec4) Load 24
336              26:    7(fvec4) ConvertSToF 25
337              28:     23(ptr) AccessChain 21(int4_array) 27
338              29:   17(ivec4) Load 28
339              30:    7(fvec4) ConvertSToF 29
340              31:          13 CompositeConstruct 26 30
341                              Store 15(float4_array_times) 31
342              39:     38(ptr) AccessChain 21(int4_array) 22 37
343              40:     16(int) Load 39
344              42:     38(ptr) AccessChain 21(int4_array) 22 41
345              43:     16(int) Load 42
346              45:   44(ivec2) CompositeConstruct 40 43
347              46:   32(fvec2) ConvertSToF 45
348              47:     38(ptr) AccessChain 21(int4_array) 22 12
349              48:     16(int) Load 47
350              49:     38(ptr) AccessChain 21(int4_array) 22 18
351              50:     16(int) Load 49
352              51:   44(ivec2) CompositeConstruct 48 50
353              52:   32(fvec2) ConvertSToF 51
354              53:     38(ptr) AccessChain 21(int4_array) 27 37
355              54:     16(int) Load 53
356              55:     38(ptr) AccessChain 21(int4_array) 27 41
357              56:     16(int) Load 55
358              57:   44(ivec2) CompositeConstruct 54 56
359              58:   32(fvec2) ConvertSToF 57
360              59:     38(ptr) AccessChain 21(int4_array) 27 12
361              60:     16(int) Load 59
362              61:     38(ptr) AccessChain 21(int4_array) 27 18
363              62:     16(int) Load 61
364              63:   44(ivec2) CompositeConstruct 60 62
365              64:   32(fvec2) ConvertSToF 63
366              65:          34 CompositeConstruct 46 52 58 64
367                              Store 36(float2_array_times2) 65
368              69:     23(ptr) AccessChain 21(int4_array) 22
369              70:   17(ivec4) Load 69
370              71:     23(ptr) AccessChain 21(int4_array) 27
371              72:   17(ivec4) Load 71
372              73:          66 CompositeConstruct 70 72
373                              Store 68(int4_array2) 73
374              77:     38(ptr) AccessChain 21(int4_array) 22 37
375              78:     16(int) Load 77
376              79:     38(ptr) AccessChain 21(int4_array) 22 41
377              80:     16(int) Load 79
378              81:          74 CompositeConstruct 78 80
379                              Store 76(int1_array) 81
380                              ReturnValue 83
381                              FunctionEnd
382