1hlsl.clipdistance-8.vert
2Shader version: 500
30:? Sequence
40:8  Function Definition: @main( ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
50:8    Function Parameters:
60:?     Sequence
70:10      move second child to first child ( temp 4-component vector of float)
80:10        Position: direct index for structure ( temp 4-component vector of float)
90:10          'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
100:10          Constant:
110:10            0 (const int)
120:10        Constant:
130:10          0.000000
140:10          0.000000
150:10          0.000000
160:10          0.000000
170:12      move second child to first child ( temp float)
180:12        direct index ( temp float)
190:12          clip0: direct index for structure ( temp 3-component vector of float)
200:12            'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
210:12            Constant:
220:12              1 (const int)
230:12          Constant:
240:12            0 (const int)
250:12        Constant:
260:12          0.000000
270:13      move second child to first child ( temp float)
280:13        direct index ( temp float)
290:13          clip0: direct index for structure ( temp 3-component vector of float)
300:13            'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
310:13            Constant:
320:13              1 (const int)
330:13          Constant:
340:13            1 (const int)
350:13        Constant:
360:13          1.000000
370:14      move second child to first child ( temp float)
380:14        direct index ( temp float)
390:14          clip0: direct index for structure ( temp 3-component vector of float)
400:14            'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
410:14            Constant:
420:14              1 (const int)
430:14          Constant:
440:14            2 (const int)
450:14        Constant:
460:14          2.000000
470:17      move second child to first child ( temp float)
480:17        clip1: direct index for structure ( temp float)
490:17          'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
500:17          Constant:
510:17            2 (const int)
520:17        Constant:
530:17          3.000000
540:19      Branch: Return with expression
550:19        'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
560:8  Function Definition: main( ( temp void)
570:8    Function Parameters:
580:?     Sequence
590:8      Sequence
600:8        move second child to first child ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
610:8          'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
620:8          Function Call: @main( ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
630:8        move second child to first child ( temp 4-component vector of float)
640:?           '@entryPointOutput.Position' ( out 4-component vector of float Position)
650:8          Position: direct index for structure ( temp 4-component vector of float)
660:8            'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
670:8            Constant:
680:8              0 (const int)
690:?         Sequence
700:8          move second child to first child ( temp float)
710:8            direct index ( out float ClipDistance)
720:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
730:8              Constant:
740:8                0 (const int)
750:8            direct index ( temp float)
760:8              clip0: direct index for structure ( temp 3-component vector of float)
770:8                'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
780:8                Constant:
790:8                  1 (const int)
800:8              Constant:
810:8                0 (const int)
820:8          move second child to first child ( temp float)
830:8            direct index ( out float ClipDistance)
840:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
850:8              Constant:
860:8                1 (const int)
870:8            direct index ( temp float)
880:8              clip0: direct index for structure ( temp 3-component vector of float)
890:8                'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
900:8                Constant:
910:8                  1 (const int)
920:8              Constant:
930:8                1 (const int)
940:8          move second child to first child ( temp float)
950:8            direct index ( out float ClipDistance)
960:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
970:8              Constant:
980:8                2 (const int)
990:8            direct index ( temp float)
1000:8              clip0: direct index for structure ( temp 3-component vector of float)
1010:8                'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1020:8                Constant:
1030:8                  1 (const int)
1040:8              Constant:
1050:8                2 (const int)
1060:?         Sequence
1070:8          move second child to first child ( temp float)
1080:8            direct index ( out float ClipDistance)
1090:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
1100:8              Constant:
1110:8                3 (const int)
1120:8            clip1: direct index for structure ( temp float)
1130:8              'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1140:8              Constant:
1150:8                2 (const int)
1160:?   Linker Objects
1170:?     '@entryPointOutput.Position' ( out 4-component vector of float Position)
1180:?     '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
119
120
121Linked vertex stage:
122
123
124Shader version: 500
1250:? Sequence
1260:8  Function Definition: @main( ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1270:8    Function Parameters:
1280:?     Sequence
1290:10      move second child to first child ( temp 4-component vector of float)
1300:10        Position: direct index for structure ( temp 4-component vector of float)
1310:10          'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1320:10          Constant:
1330:10            0 (const int)
1340:10        Constant:
1350:10          0.000000
1360:10          0.000000
1370:10          0.000000
1380:10          0.000000
1390:12      move second child to first child ( temp float)
1400:12        direct index ( temp float)
1410:12          clip0: direct index for structure ( temp 3-component vector of float)
1420:12            'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1430:12            Constant:
1440:12              1 (const int)
1450:12          Constant:
1460:12            0 (const int)
1470:12        Constant:
1480:12          0.000000
1490:13      move second child to first child ( temp float)
1500:13        direct index ( temp float)
1510:13          clip0: direct index for structure ( temp 3-component vector of float)
1520:13            'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1530:13            Constant:
1540:13              1 (const int)
1550:13          Constant:
1560:13            1 (const int)
1570:13        Constant:
1580:13          1.000000
1590:14      move second child to first child ( temp float)
1600:14        direct index ( temp float)
1610:14          clip0: direct index for structure ( temp 3-component vector of float)
1620:14            'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1630:14            Constant:
1640:14              1 (const int)
1650:14          Constant:
1660:14            2 (const int)
1670:14        Constant:
1680:14          2.000000
1690:17      move second child to first child ( temp float)
1700:17        clip1: direct index for structure ( temp float)
1710:17          'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1720:17          Constant:
1730:17            2 (const int)
1740:17        Constant:
1750:17          3.000000
1760:19      Branch: Return with expression
1770:19        'Output' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1780:8  Function Definition: main( ( temp void)
1790:8    Function Parameters:
1800:?     Sequence
1810:8      Sequence
1820:8        move second child to first child ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1830:8          'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1840:8          Function Call: @main( ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1850:8        move second child to first child ( temp 4-component vector of float)
1860:?           '@entryPointOutput.Position' ( out 4-component vector of float Position)
1870:8          Position: direct index for structure ( temp 4-component vector of float)
1880:8            'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
1890:8            Constant:
1900:8              0 (const int)
1910:?         Sequence
1920:8          move second child to first child ( temp float)
1930:8            direct index ( out float ClipDistance)
1940:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
1950:8              Constant:
1960:8                0 (const int)
1970:8            direct index ( temp float)
1980:8              clip0: direct index for structure ( temp 3-component vector of float)
1990:8                'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
2000:8                Constant:
2010:8                  1 (const int)
2020:8              Constant:
2030:8                0 (const int)
2040:8          move second child to first child ( temp float)
2050:8            direct index ( out float ClipDistance)
2060:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
2070:8              Constant:
2080:8                1 (const int)
2090:8            direct index ( temp float)
2100:8              clip0: direct index for structure ( temp 3-component vector of float)
2110:8                'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
2120:8                Constant:
2130:8                  1 (const int)
2140:8              Constant:
2150:8                1 (const int)
2160:8          move second child to first child ( temp float)
2170:8            direct index ( out float ClipDistance)
2180:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
2190:8              Constant:
2200:8                2 (const int)
2210:8            direct index ( temp float)
2220:8              clip0: direct index for structure ( temp 3-component vector of float)
2230:8                'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
2240:8                Constant:
2250:8                  1 (const int)
2260:8              Constant:
2270:8                2 (const int)
2280:?         Sequence
2290:8          move second child to first child ( temp float)
2300:8            direct index ( out float ClipDistance)
2310:?               '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
2320:8              Constant:
2330:8                3 (const int)
2340:8            clip1: direct index for structure ( temp float)
2350:8              'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 3-component vector of float clip0,  temp float clip1})
2360:8              Constant:
2370:8                2 (const int)
2380:?   Linker Objects
2390:?     '@entryPointOutput.Position' ( out 4-component vector of float Position)
2400:?     '@entryPointOutput.clip1' ( out 4-element array of float ClipDistance)
241
242// Module Version 10000
243// Generated by (magic number): 80007
244// Id's are bound by 62
245
246                              Capability Shader
247                              Capability ClipDistance
248               1:             ExtInstImport  "GLSL.std.450"
249                              MemoryModel Logical GLSL450
250                              EntryPoint Vertex 4  "main" 41 47
251                              Source HLSL 500
252                              Name 4  "main"
253                              Name 9  "VS_OUTPUT"
254                              MemberName 9(VS_OUTPUT) 0  "Position"
255                              MemberName 9(VS_OUTPUT) 1  "clip0"
256                              MemberName 9(VS_OUTPUT) 2  "clip1"
257                              Name 11  "@main("
258                              Name 14  "Output"
259                              Name 38  "flattenTemp"
260                              Name 41  "@entryPointOutput.Position"
261                              Name 47  "@entryPointOutput.clip1"
262                              Decorate 41(@entryPointOutput.Position) BuiltIn Position
263                              Decorate 47(@entryPointOutput.clip1) BuiltIn ClipDistance
264               2:             TypeVoid
265               3:             TypeFunction 2
266               6:             TypeFloat 32
267               7:             TypeVector 6(float) 4
268               8:             TypeVector 6(float) 3
269    9(VS_OUTPUT):             TypeStruct 7(fvec4) 8(fvec3) 6(float)
270              10:             TypeFunction 9(VS_OUTPUT)
271              13:             TypePointer Function 9(VS_OUTPUT)
272              15:             TypeInt 32 1
273              16:     15(int) Constant 0
274              17:    6(float) Constant 0
275              18:    7(fvec4) ConstantComposite 17 17 17 17
276              19:             TypePointer Function 7(fvec4)
277              21:     15(int) Constant 1
278              22:             TypeInt 32 0
279              23:     22(int) Constant 0
280              24:             TypePointer Function 6(float)
281              26:    6(float) Constant 1065353216
282              27:     22(int) Constant 1
283              29:    6(float) Constant 1073741824
284              30:     22(int) Constant 2
285              32:     15(int) Constant 2
286              33:    6(float) Constant 1077936128
287              40:             TypePointer Output 7(fvec4)
28841(@entryPointOutput.Position):     40(ptr) Variable Output
289              44:     22(int) Constant 4
290              45:             TypeArray 6(float) 44
291              46:             TypePointer Output 45
29247(@entryPointOutput.clip1):     46(ptr) Variable Output
293              50:             TypePointer Output 6(float)
294              58:     15(int) Constant 3
295         4(main):           2 Function None 3
296               5:             Label
297 38(flattenTemp):     13(ptr) Variable Function
298              39:9(VS_OUTPUT) FunctionCall 11(@main()
299                              Store 38(flattenTemp) 39
300              42:     19(ptr) AccessChain 38(flattenTemp) 16
301              43:    7(fvec4) Load 42
302                              Store 41(@entryPointOutput.Position) 43
303              48:     24(ptr) AccessChain 38(flattenTemp) 21 23
304              49:    6(float) Load 48
305              51:     50(ptr) AccessChain 47(@entryPointOutput.clip1) 16
306                              Store 51 49
307              52:     24(ptr) AccessChain 38(flattenTemp) 21 27
308              53:    6(float) Load 52
309              54:     50(ptr) AccessChain 47(@entryPointOutput.clip1) 21
310                              Store 54 53
311              55:     24(ptr) AccessChain 38(flattenTemp) 21 30
312              56:    6(float) Load 55
313              57:     50(ptr) AccessChain 47(@entryPointOutput.clip1) 32
314                              Store 57 56
315              59:     24(ptr) AccessChain 38(flattenTemp) 32
316              60:    6(float) Load 59
317              61:     50(ptr) AccessChain 47(@entryPointOutput.clip1) 58
318                              Store 61 60
319                              Return
320                              FunctionEnd
321      11(@main():9(VS_OUTPUT) Function None 10
322              12:             Label
323      14(Output):     13(ptr) Variable Function
324              20:     19(ptr) AccessChain 14(Output) 16
325                              Store 20 18
326              25:     24(ptr) AccessChain 14(Output) 21 23
327                              Store 25 17
328              28:     24(ptr) AccessChain 14(Output) 21 27
329                              Store 28 26
330              31:     24(ptr) AccessChain 14(Output) 21 30
331                              Store 31 29
332              34:     24(ptr) AccessChain 14(Output) 32
333                              Store 34 33
334              35:9(VS_OUTPUT) Load 14(Output)
335                              ReturnValue 35
336                              FunctionEnd
337