1hlsl.clipdistance-2.vert
2Shader version: 500
30:? Sequence
40:4  Function Definition: @main(vf4;vf2[2];vf2[2]; ( temp void)
50:4    Function Parameters:
60:4      'pos' ( out 4-component vector of float)
70:4      'clip' ( out 2-element array of 2-component vector of float)
80:4      'cull' ( out 2-element array of 2-component vector of float)
90:?     Sequence
100:5      move second child to first child ( temp 4-component vector of float)
110:5        'pos' ( out 4-component vector of float)
120:5        Constant:
130:5          1.000000
140:5          1.000000
150:5          1.000000
160:5          1.000000
170:6      move second child to first child ( temp float)
180:6        direct index ( temp float)
190:6          direct index ( temp 2-component vector of float)
200:6            'clip' ( out 2-element array of 2-component vector of float)
210:6            Constant:
220:6              0 (const int)
230:6          Constant:
240:6            0 (const int)
250:6        Constant:
260:6          0.500000
270:7      move second child to first child ( temp float)
280:7        direct index ( temp float)
290:7          direct index ( temp 2-component vector of float)
300:7            'clip' ( out 2-element array of 2-component vector of float)
310:7            Constant:
320:7              0 (const int)
330:7          Constant:
340:7            1 (const int)
350:7        Constant:
360:7          0.600000
370:8      move second child to first child ( temp float)
380:8        direct index ( temp float)
390:8          direct index ( temp 2-component vector of float)
400:8            'clip' ( out 2-element array of 2-component vector of float)
410:8            Constant:
420:8              1 (const int)
430:8          Constant:
440:8            0 (const int)
450:8        Constant:
460:8          0.700000
470:9      move second child to first child ( temp float)
480:9        direct index ( temp float)
490:9          direct index ( temp 2-component vector of float)
500:9            'clip' ( out 2-element array of 2-component vector of float)
510:9            Constant:
520:9              1 (const int)
530:9          Constant:
540:9            1 (const int)
550:9        Constant:
560:9          0.800000
570:11      move second child to first child ( temp float)
580:11        direct index ( temp float)
590:11          direct index ( temp 2-component vector of float)
600:11            'cull' ( out 2-element array of 2-component vector of float)
610:11            Constant:
620:11              0 (const int)
630:11          Constant:
640:11            0 (const int)
650:11        Constant:
660:11          0.525000
670:12      move second child to first child ( temp float)
680:12        direct index ( temp float)
690:12          direct index ( temp 2-component vector of float)
700:12            'cull' ( out 2-element array of 2-component vector of float)
710:12            Constant:
720:12              0 (const int)
730:12          Constant:
740:12            1 (const int)
750:12        Constant:
760:12          0.625000
770:13      move second child to first child ( temp float)
780:13        direct index ( temp float)
790:13          direct index ( temp 2-component vector of float)
800:13            'cull' ( out 2-element array of 2-component vector of float)
810:13            Constant:
820:13              1 (const int)
830:13          Constant:
840:13            0 (const int)
850:13        Constant:
860:13          0.725000
870:14      move second child to first child ( temp float)
880:14        direct index ( temp float)
890:14          direct index ( temp 2-component vector of float)
900:14            'cull' ( out 2-element array of 2-component vector of float)
910:14            Constant:
920:14              1 (const int)
930:14          Constant:
940:14            1 (const int)
950:14        Constant:
960:14          0.825000
970:4  Function Definition: main( ( temp void)
980:4    Function Parameters:
990:?     Sequence
1000:4      Function Call: @main(vf4;vf2[2];vf2[2]; ( temp void)
1010:?         'pos' ( temp 4-component vector of float)
1020:?         'clip' ( temp 2-element array of 2-component vector of float)
1030:?         'cull' ( temp 2-element array of 2-component vector of float)
1040:4      move second child to first child ( temp 4-component vector of float)
1050:?         'pos' ( out 4-component vector of float Position)
1060:?         'pos' ( temp 4-component vector of float)
1070:?       Sequence
1080:4        move second child to first child ( temp float)
1090:4          direct index ( out float ClipDistance)
1100:?             'clip' ( out 4-element array of float ClipDistance)
1110:4            Constant:
1120:4              0 (const int)
1130:4          direct index ( temp float)
1140:4            direct index ( temp 2-component vector of float)
1150:?               'clip' ( temp 2-element array of 2-component vector of float)
1160:4              Constant:
1170:4                0 (const int)
1180:4            Constant:
1190:4              0 (const int)
1200:4        move second child to first child ( temp float)
1210:4          direct index ( out float ClipDistance)
1220:?             'clip' ( out 4-element array of float ClipDistance)
1230:4            Constant:
1240:4              1 (const int)
1250:4          direct index ( temp float)
1260:4            direct index ( temp 2-component vector of float)
1270:?               'clip' ( temp 2-element array of 2-component vector of float)
1280:4              Constant:
1290:4                0 (const int)
1300:4            Constant:
1310:4              1 (const int)
1320:4        move second child to first child ( temp float)
1330:4          direct index ( out float ClipDistance)
1340:?             'clip' ( out 4-element array of float ClipDistance)
1350:4            Constant:
1360:4              2 (const int)
1370:4          direct index ( temp float)
1380:4            direct index ( temp 2-component vector of float)
1390:?               'clip' ( temp 2-element array of 2-component vector of float)
1400:4              Constant:
1410:4                1 (const int)
1420:4            Constant:
1430:4              0 (const int)
1440:4        move second child to first child ( temp float)
1450:4          direct index ( out float ClipDistance)
1460:?             'clip' ( out 4-element array of float ClipDistance)
1470:4            Constant:
1480:4              3 (const int)
1490:4          direct index ( temp float)
1500:4            direct index ( temp 2-component vector of float)
1510:?               'clip' ( temp 2-element array of 2-component vector of float)
1520:4              Constant:
1530:4                1 (const int)
1540:4            Constant:
1550:4              1 (const int)
1560:?       Sequence
1570:4        move second child to first child ( temp float)
1580:4          direct index ( out float CullDistance)
1590:?             'cull' ( out 4-element array of float CullDistance)
1600:4            Constant:
1610:4              0 (const int)
1620:4          direct index ( temp float)
1630:4            direct index ( temp 2-component vector of float)
1640:?               'cull' ( temp 2-element array of 2-component vector of float)
1650:4              Constant:
1660:4                0 (const int)
1670:4            Constant:
1680:4              0 (const int)
1690:4        move second child to first child ( temp float)
1700:4          direct index ( out float CullDistance)
1710:?             'cull' ( out 4-element array of float CullDistance)
1720:4            Constant:
1730:4              1 (const int)
1740:4          direct index ( temp float)
1750:4            direct index ( temp 2-component vector of float)
1760:?               'cull' ( temp 2-element array of 2-component vector of float)
1770:4              Constant:
1780:4                0 (const int)
1790:4            Constant:
1800:4              1 (const int)
1810:4        move second child to first child ( temp float)
1820:4          direct index ( out float CullDistance)
1830:?             'cull' ( out 4-element array of float CullDistance)
1840:4            Constant:
1850:4              2 (const int)
1860:4          direct index ( temp float)
1870:4            direct index ( temp 2-component vector of float)
1880:?               'cull' ( temp 2-element array of 2-component vector of float)
1890:4              Constant:
1900:4                1 (const int)
1910:4            Constant:
1920:4              0 (const int)
1930:4        move second child to first child ( temp float)
1940:4          direct index ( out float CullDistance)
1950:?             'cull' ( out 4-element array of float CullDistance)
1960:4            Constant:
1970:4              3 (const int)
1980:4          direct index ( temp float)
1990:4            direct index ( temp 2-component vector of float)
2000:?               'cull' ( temp 2-element array of 2-component vector of float)
2010:4              Constant:
2020:4                1 (const int)
2030:4            Constant:
2040:4              1 (const int)
2050:?   Linker Objects
2060:?     'pos' ( out 4-component vector of float Position)
2070:?     'clip' ( out 4-element array of float ClipDistance)
2080:?     'cull' ( out 4-element array of float CullDistance)
209
210
211Linked vertex stage:
212
213
214Shader version: 500
2150:? Sequence
2160:4  Function Definition: @main(vf4;vf2[2];vf2[2]; ( temp void)
2170:4    Function Parameters:
2180:4      'pos' ( out 4-component vector of float)
2190:4      'clip' ( out 2-element array of 2-component vector of float)
2200:4      'cull' ( out 2-element array of 2-component vector of float)
2210:?     Sequence
2220:5      move second child to first child ( temp 4-component vector of float)
2230:5        'pos' ( out 4-component vector of float)
2240:5        Constant:
2250:5          1.000000
2260:5          1.000000
2270:5          1.000000
2280:5          1.000000
2290:6      move second child to first child ( temp float)
2300:6        direct index ( temp float)
2310:6          direct index ( temp 2-component vector of float)
2320:6            'clip' ( out 2-element array of 2-component vector of float)
2330:6            Constant:
2340:6              0 (const int)
2350:6          Constant:
2360:6            0 (const int)
2370:6        Constant:
2380:6          0.500000
2390:7      move second child to first child ( temp float)
2400:7        direct index ( temp float)
2410:7          direct index ( temp 2-component vector of float)
2420:7            'clip' ( out 2-element array of 2-component vector of float)
2430:7            Constant:
2440:7              0 (const int)
2450:7          Constant:
2460:7            1 (const int)
2470:7        Constant:
2480:7          0.600000
2490:8      move second child to first child ( temp float)
2500:8        direct index ( temp float)
2510:8          direct index ( temp 2-component vector of float)
2520:8            'clip' ( out 2-element array of 2-component vector of float)
2530:8            Constant:
2540:8              1 (const int)
2550:8          Constant:
2560:8            0 (const int)
2570:8        Constant:
2580:8          0.700000
2590:9      move second child to first child ( temp float)
2600:9        direct index ( temp float)
2610:9          direct index ( temp 2-component vector of float)
2620:9            'clip' ( out 2-element array of 2-component vector of float)
2630:9            Constant:
2640:9              1 (const int)
2650:9          Constant:
2660:9            1 (const int)
2670:9        Constant:
2680:9          0.800000
2690:11      move second child to first child ( temp float)
2700:11        direct index ( temp float)
2710:11          direct index ( temp 2-component vector of float)
2720:11            'cull' ( out 2-element array of 2-component vector of float)
2730:11            Constant:
2740:11              0 (const int)
2750:11          Constant:
2760:11            0 (const int)
2770:11        Constant:
2780:11          0.525000
2790:12      move second child to first child ( temp float)
2800:12        direct index ( temp float)
2810:12          direct index ( temp 2-component vector of float)
2820:12            'cull' ( out 2-element array of 2-component vector of float)
2830:12            Constant:
2840:12              0 (const int)
2850:12          Constant:
2860:12            1 (const int)
2870:12        Constant:
2880:12          0.625000
2890:13      move second child to first child ( temp float)
2900:13        direct index ( temp float)
2910:13          direct index ( temp 2-component vector of float)
2920:13            'cull' ( out 2-element array of 2-component vector of float)
2930:13            Constant:
2940:13              1 (const int)
2950:13          Constant:
2960:13            0 (const int)
2970:13        Constant:
2980:13          0.725000
2990:14      move second child to first child ( temp float)
3000:14        direct index ( temp float)
3010:14          direct index ( temp 2-component vector of float)
3020:14            'cull' ( out 2-element array of 2-component vector of float)
3030:14            Constant:
3040:14              1 (const int)
3050:14          Constant:
3060:14            1 (const int)
3070:14        Constant:
3080:14          0.825000
3090:4  Function Definition: main( ( temp void)
3100:4    Function Parameters:
3110:?     Sequence
3120:4      Function Call: @main(vf4;vf2[2];vf2[2]; ( temp void)
3130:?         'pos' ( temp 4-component vector of float)
3140:?         'clip' ( temp 2-element array of 2-component vector of float)
3150:?         'cull' ( temp 2-element array of 2-component vector of float)
3160:4      move second child to first child ( temp 4-component vector of float)
3170:?         'pos' ( out 4-component vector of float Position)
3180:?         'pos' ( temp 4-component vector of float)
3190:?       Sequence
3200:4        move second child to first child ( temp float)
3210:4          direct index ( out float ClipDistance)
3220:?             'clip' ( out 4-element array of float ClipDistance)
3230:4            Constant:
3240:4              0 (const int)
3250:4          direct index ( temp float)
3260:4            direct index ( temp 2-component vector of float)
3270:?               'clip' ( temp 2-element array of 2-component vector of float)
3280:4              Constant:
3290:4                0 (const int)
3300:4            Constant:
3310:4              0 (const int)
3320:4        move second child to first child ( temp float)
3330:4          direct index ( out float ClipDistance)
3340:?             'clip' ( out 4-element array of float ClipDistance)
3350:4            Constant:
3360:4              1 (const int)
3370:4          direct index ( temp float)
3380:4            direct index ( temp 2-component vector of float)
3390:?               'clip' ( temp 2-element array of 2-component vector of float)
3400:4              Constant:
3410:4                0 (const int)
3420:4            Constant:
3430:4              1 (const int)
3440:4        move second child to first child ( temp float)
3450:4          direct index ( out float ClipDistance)
3460:?             'clip' ( out 4-element array of float ClipDistance)
3470:4            Constant:
3480:4              2 (const int)
3490:4          direct index ( temp float)
3500:4            direct index ( temp 2-component vector of float)
3510:?               'clip' ( temp 2-element array of 2-component vector of float)
3520:4              Constant:
3530:4                1 (const int)
3540:4            Constant:
3550:4              0 (const int)
3560:4        move second child to first child ( temp float)
3570:4          direct index ( out float ClipDistance)
3580:?             'clip' ( out 4-element array of float ClipDistance)
3590:4            Constant:
3600:4              3 (const int)
3610:4          direct index ( temp float)
3620:4            direct index ( temp 2-component vector of float)
3630:?               'clip' ( temp 2-element array of 2-component vector of float)
3640:4              Constant:
3650:4                1 (const int)
3660:4            Constant:
3670:4              1 (const int)
3680:?       Sequence
3690:4        move second child to first child ( temp float)
3700:4          direct index ( out float CullDistance)
3710:?             'cull' ( out 4-element array of float CullDistance)
3720:4            Constant:
3730:4              0 (const int)
3740:4          direct index ( temp float)
3750:4            direct index ( temp 2-component vector of float)
3760:?               'cull' ( temp 2-element array of 2-component vector of float)
3770:4              Constant:
3780:4                0 (const int)
3790:4            Constant:
3800:4              0 (const int)
3810:4        move second child to first child ( temp float)
3820:4          direct index ( out float CullDistance)
3830:?             'cull' ( out 4-element array of float CullDistance)
3840:4            Constant:
3850:4              1 (const int)
3860:4          direct index ( temp float)
3870:4            direct index ( temp 2-component vector of float)
3880:?               'cull' ( temp 2-element array of 2-component vector of float)
3890:4              Constant:
3900:4                0 (const int)
3910:4            Constant:
3920:4              1 (const int)
3930:4        move second child to first child ( temp float)
3940:4          direct index ( out float CullDistance)
3950:?             'cull' ( out 4-element array of float CullDistance)
3960:4            Constant:
3970:4              2 (const int)
3980:4          direct index ( temp float)
3990:4            direct index ( temp 2-component vector of float)
4000:?               'cull' ( temp 2-element array of 2-component vector of float)
4010:4              Constant:
4020:4                1 (const int)
4030:4            Constant:
4040:4              0 (const int)
4050:4        move second child to first child ( temp float)
4060:4          direct index ( out float CullDistance)
4070:?             'cull' ( out 4-element array of float CullDistance)
4080:4            Constant:
4090:4              3 (const int)
4100:4          direct index ( temp float)
4110:4            direct index ( temp 2-component vector of float)
4120:?               'cull' ( temp 2-element array of 2-component vector of float)
4130:4              Constant:
4140:4                1 (const int)
4150:4            Constant:
4160:4              1 (const int)
4170:?   Linker Objects
4180:?     'pos' ( out 4-component vector of float Position)
4190:?     'clip' ( out 4-element array of float ClipDistance)
4200:?     'cull' ( out 4-element array of float CullDistance)
421
422// Module Version 10000
423// Generated by (magic number): 80007
424// Id's are bound by 89
425
426                              Capability Shader
427                              Capability ClipDistance
428                              Capability CullDistance
429               1:             ExtInstImport  "GLSL.std.450"
430                              MemoryModel Logical GLSL450
431                              EntryPoint Vertex 4  "main" 55 60 76
432                              Source HLSL 500
433                              Name 4  "main"
434                              Name 18  "@main(vf4;vf2[2];vf2[2];"
435                              Name 15  "pos"
436                              Name 16  "clip"
437                              Name 17  "cull"
438                              Name 44  "pos"
439                              Name 45  "clip"
440                              Name 46  "cull"
441                              Name 47  "param"
442                              Name 48  "param"
443                              Name 49  "param"
444                              Name 55  "pos"
445                              Name 60  "clip"
446                              Name 76  "cull"
447                              Decorate 55(pos) BuiltIn Position
448                              Decorate 60(clip) BuiltIn ClipDistance
449                              Decorate 76(cull) BuiltIn CullDistance
450               2:             TypeVoid
451               3:             TypeFunction 2
452               6:             TypeFloat 32
453               7:             TypeVector 6(float) 4
454               8:             TypePointer Function 7(fvec4)
455               9:             TypeVector 6(float) 2
456              10:             TypeInt 32 0
457              11:     10(int) Constant 2
458              12:             TypeArray 9(fvec2) 11
459              13:             TypePointer Function 12
460              14:             TypeFunction 2 8(ptr) 13(ptr) 13(ptr)
461              20:    6(float) Constant 1065353216
462              21:    7(fvec4) ConstantComposite 20 20 20 20
463              22:             TypeInt 32 1
464              23:     22(int) Constant 0
465              24:    6(float) Constant 1056964608
466              25:     10(int) Constant 0
467              26:             TypePointer Function 6(float)
468              28:    6(float) Constant 1058642330
469              29:     10(int) Constant 1
470              31:     22(int) Constant 1
471              32:    6(float) Constant 1060320051
472              34:    6(float) Constant 1061997773
473              36:    6(float) Constant 1057384038
474              38:    6(float) Constant 1059061760
475              40:    6(float) Constant 1060739482
476              42:    6(float) Constant 1062417203
477              54:             TypePointer Output 7(fvec4)
478         55(pos):     54(ptr) Variable Output
479              57:     10(int) Constant 4
480              58:             TypeArray 6(float) 57
481              59:             TypePointer Output 58
482        60(clip):     59(ptr) Variable Output
483              63:             TypePointer Output 6(float)
484              68:     22(int) Constant 2
485              72:     22(int) Constant 3
486        76(cull):     59(ptr) Variable Output
487         4(main):           2 Function None 3
488               5:             Label
489         44(pos):      8(ptr) Variable Function
490        45(clip):     13(ptr) Variable Function
491        46(cull):     13(ptr) Variable Function
492       47(param):      8(ptr) Variable Function
493       48(param):     13(ptr) Variable Function
494       49(param):     13(ptr) Variable Function
495              50:           2 FunctionCall 18(@main(vf4;vf2[2];vf2[2];) 47(param) 48(param) 49(param)
496              51:    7(fvec4) Load 47(param)
497                              Store 44(pos) 51
498              52:          12 Load 48(param)
499                              Store 45(clip) 52
500              53:          12 Load 49(param)
501                              Store 46(cull) 53
502              56:    7(fvec4) Load 44(pos)
503                              Store 55(pos) 56
504              61:     26(ptr) AccessChain 45(clip) 23 25
505              62:    6(float) Load 61
506              64:     63(ptr) AccessChain 60(clip) 23
507                              Store 64 62
508              65:     26(ptr) AccessChain 45(clip) 23 29
509              66:    6(float) Load 65
510              67:     63(ptr) AccessChain 60(clip) 31
511                              Store 67 66
512              69:     26(ptr) AccessChain 45(clip) 31 25
513              70:    6(float) Load 69
514              71:     63(ptr) AccessChain 60(clip) 68
515                              Store 71 70
516              73:     26(ptr) AccessChain 45(clip) 31 29
517              74:    6(float) Load 73
518              75:     63(ptr) AccessChain 60(clip) 72
519                              Store 75 74
520              77:     26(ptr) AccessChain 46(cull) 23 25
521              78:    6(float) Load 77
522              79:     63(ptr) AccessChain 76(cull) 23
523                              Store 79 78
524              80:     26(ptr) AccessChain 46(cull) 23 29
525              81:    6(float) Load 80
526              82:     63(ptr) AccessChain 76(cull) 31
527                              Store 82 81
528              83:     26(ptr) AccessChain 46(cull) 31 25
529              84:    6(float) Load 83
530              85:     63(ptr) AccessChain 76(cull) 68
531                              Store 85 84
532              86:     26(ptr) AccessChain 46(cull) 31 29
533              87:    6(float) Load 86
534              88:     63(ptr) AccessChain 76(cull) 72
535                              Store 88 87
536                              Return
537                              FunctionEnd
53818(@main(vf4;vf2[2];vf2[2];):           2 Function None 14
539         15(pos):      8(ptr) FunctionParameter
540        16(clip):     13(ptr) FunctionParameter
541        17(cull):     13(ptr) FunctionParameter
542              19:             Label
543                              Store 15(pos) 21
544              27:     26(ptr) AccessChain 16(clip) 23 25
545                              Store 27 24
546              30:     26(ptr) AccessChain 16(clip) 23 29
547                              Store 30 28
548              33:     26(ptr) AccessChain 16(clip) 31 25
549                              Store 33 32
550              35:     26(ptr) AccessChain 16(clip) 31 29
551                              Store 35 34
552              37:     26(ptr) AccessChain 17(cull) 23 25
553                              Store 37 36
554              39:     26(ptr) AccessChain 17(cull) 23 29
555                              Store 39 38
556              41:     26(ptr) AccessChain 17(cull) 31 25
557                              Store 41 40
558              43:     26(ptr) AccessChain 17(cull) 31 29
559                              Store 43 42
560                              Return
561                              FunctionEnd
562