1hlsl.comparison.vec.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:4  Function Definition: Bug1(vf4; ( temp void)
60:4    Function Parameters:
70:4      'a' ( in 4-component vector of float)
80:?     Sequence
90:5      Sequence
100:5        move second child to first child ( temp 4-component vector of float)
110:5          'v04' ( temp 4-component vector of float)
120:?           Constant:
130:?             0.000000
140:?             0.000000
150:?             0.000000
160:?             0.000000
170:6      Sequence
180:6        move second child to first child ( temp float)
190:6          'v01' ( temp float)
200:6          Constant:
210:6            0.000000
220:8      Sequence
230:8        move second child to first child ( temp 4-component vector of bool)
240:8          'r00' ( temp 4-component vector of bool)
250:8          Equal ( temp 4-component vector of bool)
260:8            'a' ( in 4-component vector of float)
270:8            'v04' ( temp 4-component vector of float)
280:9      Sequence
290:9        move second child to first child ( temp 4-component vector of bool)
300:9          'r01' ( temp 4-component vector of bool)
310:9          NotEqual ( temp 4-component vector of bool)
320:9            'a' ( in 4-component vector of float)
330:9            'v04' ( temp 4-component vector of float)
340:10      Sequence
350:10        move second child to first child ( temp 4-component vector of bool)
360:10          'r02' ( temp 4-component vector of bool)
370:10          Compare Less Than ( temp 4-component vector of bool)
380:10            'a' ( in 4-component vector of float)
390:10            'v04' ( temp 4-component vector of float)
400:11      Sequence
410:11        move second child to first child ( temp 4-component vector of bool)
420:11          'r03' ( temp 4-component vector of bool)
430:11          Compare Greater Than ( temp 4-component vector of bool)
440:11            'a' ( in 4-component vector of float)
450:11            'v04' ( temp 4-component vector of float)
460:13      Sequence
470:13        move second child to first child ( temp 4-component vector of bool)
480:13          'r10' ( temp 4-component vector of bool)
490:13          Equal ( temp 4-component vector of bool)
500:13            'a' ( in 4-component vector of float)
510:13            Construct vec4 ( in 4-component vector of float)
520:13              'v01' ( temp float)
530:14      Sequence
540:14        move second child to first child ( temp 4-component vector of bool)
550:14          'r11' ( temp 4-component vector of bool)
560:14          NotEqual ( temp 4-component vector of bool)
570:14            'a' ( in 4-component vector of float)
580:14            Construct vec4 ( in 4-component vector of float)
590:14              'v01' ( temp float)
600:15      Sequence
610:15        move second child to first child ( temp 4-component vector of bool)
620:15          'r12' ( temp 4-component vector of bool)
630:15          Compare Less Than ( temp 4-component vector of bool)
640:15            'a' ( in 4-component vector of float)
650:15            Construct vec4 ( in 4-component vector of float)
660:15              'v01' ( temp float)
670:16      Sequence
680:16        move second child to first child ( temp 4-component vector of bool)
690:16          'r13' ( temp 4-component vector of bool)
700:16          Compare Greater Than ( temp 4-component vector of bool)
710:16            'a' ( in 4-component vector of float)
720:16            Construct vec4 ( in 4-component vector of float)
730:16              'v01' ( temp float)
740:18      Sequence
750:18        move second child to first child ( temp 4-component vector of bool)
760:18          'r20' ( temp 4-component vector of bool)
770:18          Equal ( temp 4-component vector of bool)
780:18            Construct vec4 ( in 4-component vector of float)
790:18              'v01' ( temp float)
800:18            'a' ( in 4-component vector of float)
810:19      Sequence
820:19        move second child to first child ( temp 4-component vector of bool)
830:19          'r21' ( temp 4-component vector of bool)
840:19          NotEqual ( temp 4-component vector of bool)
850:19            Construct vec4 ( in 4-component vector of float)
860:19              'v01' ( temp float)
870:19            'a' ( in 4-component vector of float)
880:20      Sequence
890:20        move second child to first child ( temp 4-component vector of bool)
900:20          'r22' ( temp 4-component vector of bool)
910:20          Compare Less Than ( temp 4-component vector of bool)
920:20            Construct vec4 ( in 4-component vector of float)
930:20              'v01' ( temp float)
940:20            'a' ( in 4-component vector of float)
950:21      Sequence
960:21        move second child to first child ( temp 4-component vector of bool)
970:21          'r23' ( temp 4-component vector of bool)
980:21          Compare Greater Than ( temp 4-component vector of bool)
990:21            Construct vec4 ( in 4-component vector of float)
1000:21              'v01' ( temp float)
1010:21            'a' ( in 4-component vector of float)
1020:30  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
1030:30    Function Parameters:
1040:?     Sequence
1050:32      move second child to first child ( temp 4-component vector of float)
1060:32        Color: direct index for structure ( temp 4-component vector of float)
1070:32          'psout' ( temp structure{ temp 4-component vector of float Color})
1080:32          Constant:
1090:32            0 (const int)
1100:32        Constant:
1110:32          0.000000
1120:32          0.000000
1130:32          0.000000
1140:32          0.000000
1150:33      Branch: Return with expression
1160:33        'psout' ( temp structure{ temp 4-component vector of float Color})
1170:30  Function Definition: main( ( temp void)
1180:30    Function Parameters:
1190:?     Sequence
1200:30      Sequence
1210:30        move second child to first child ( temp 4-component vector of float)
1220:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1230:30          Color: direct index for structure ( temp 4-component vector of float)
1240:30            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
1250:30            Constant:
1260:30              0 (const int)
1270:?   Linker Objects
1280:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float uf4})
1290:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
130
131
132Linked fragment stage:
133
134
135Shader version: 500
136gl_FragCoord origin is upper left
1370:? Sequence
1380:4  Function Definition: Bug1(vf4; ( temp void)
1390:4    Function Parameters:
1400:4      'a' ( in 4-component vector of float)
1410:?     Sequence
1420:5      Sequence
1430:5        move second child to first child ( temp 4-component vector of float)
1440:5          'v04' ( temp 4-component vector of float)
1450:?           Constant:
1460:?             0.000000
1470:?             0.000000
1480:?             0.000000
1490:?             0.000000
1500:6      Sequence
1510:6        move second child to first child ( temp float)
1520:6          'v01' ( temp float)
1530:6          Constant:
1540:6            0.000000
1550:8      Sequence
1560:8        move second child to first child ( temp 4-component vector of bool)
1570:8          'r00' ( temp 4-component vector of bool)
1580:8          Equal ( temp 4-component vector of bool)
1590:8            'a' ( in 4-component vector of float)
1600:8            'v04' ( temp 4-component vector of float)
1610:9      Sequence
1620:9        move second child to first child ( temp 4-component vector of bool)
1630:9          'r01' ( temp 4-component vector of bool)
1640:9          NotEqual ( temp 4-component vector of bool)
1650:9            'a' ( in 4-component vector of float)
1660:9            'v04' ( temp 4-component vector of float)
1670:10      Sequence
1680:10        move second child to first child ( temp 4-component vector of bool)
1690:10          'r02' ( temp 4-component vector of bool)
1700:10          Compare Less Than ( temp 4-component vector of bool)
1710:10            'a' ( in 4-component vector of float)
1720:10            'v04' ( temp 4-component vector of float)
1730:11      Sequence
1740:11        move second child to first child ( temp 4-component vector of bool)
1750:11          'r03' ( temp 4-component vector of bool)
1760:11          Compare Greater Than ( temp 4-component vector of bool)
1770:11            'a' ( in 4-component vector of float)
1780:11            'v04' ( temp 4-component vector of float)
1790:13      Sequence
1800:13        move second child to first child ( temp 4-component vector of bool)
1810:13          'r10' ( temp 4-component vector of bool)
1820:13          Equal ( temp 4-component vector of bool)
1830:13            'a' ( in 4-component vector of float)
1840:13            Construct vec4 ( in 4-component vector of float)
1850:13              'v01' ( temp float)
1860:14      Sequence
1870:14        move second child to first child ( temp 4-component vector of bool)
1880:14          'r11' ( temp 4-component vector of bool)
1890:14          NotEqual ( temp 4-component vector of bool)
1900:14            'a' ( in 4-component vector of float)
1910:14            Construct vec4 ( in 4-component vector of float)
1920:14              'v01' ( temp float)
1930:15      Sequence
1940:15        move second child to first child ( temp 4-component vector of bool)
1950:15          'r12' ( temp 4-component vector of bool)
1960:15          Compare Less Than ( temp 4-component vector of bool)
1970:15            'a' ( in 4-component vector of float)
1980:15            Construct vec4 ( in 4-component vector of float)
1990:15              'v01' ( temp float)
2000:16      Sequence
2010:16        move second child to first child ( temp 4-component vector of bool)
2020:16          'r13' ( temp 4-component vector of bool)
2030:16          Compare Greater Than ( temp 4-component vector of bool)
2040:16            'a' ( in 4-component vector of float)
2050:16            Construct vec4 ( in 4-component vector of float)
2060:16              'v01' ( temp float)
2070:18      Sequence
2080:18        move second child to first child ( temp 4-component vector of bool)
2090:18          'r20' ( temp 4-component vector of bool)
2100:18          Equal ( temp 4-component vector of bool)
2110:18            Construct vec4 ( in 4-component vector of float)
2120:18              'v01' ( temp float)
2130:18            'a' ( in 4-component vector of float)
2140:19      Sequence
2150:19        move second child to first child ( temp 4-component vector of bool)
2160:19          'r21' ( temp 4-component vector of bool)
2170:19          NotEqual ( temp 4-component vector of bool)
2180:19            Construct vec4 ( in 4-component vector of float)
2190:19              'v01' ( temp float)
2200:19            'a' ( in 4-component vector of float)
2210:20      Sequence
2220:20        move second child to first child ( temp 4-component vector of bool)
2230:20          'r22' ( temp 4-component vector of bool)
2240:20          Compare Less Than ( temp 4-component vector of bool)
2250:20            Construct vec4 ( in 4-component vector of float)
2260:20              'v01' ( temp float)
2270:20            'a' ( in 4-component vector of float)
2280:21      Sequence
2290:21        move second child to first child ( temp 4-component vector of bool)
2300:21          'r23' ( temp 4-component vector of bool)
2310:21          Compare Greater Than ( temp 4-component vector of bool)
2320:21            Construct vec4 ( in 4-component vector of float)
2330:21              'v01' ( temp float)
2340:21            'a' ( in 4-component vector of float)
2350:30  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
2360:30    Function Parameters:
2370:?     Sequence
2380:32      move second child to first child ( temp 4-component vector of float)
2390:32        Color: direct index for structure ( temp 4-component vector of float)
2400:32          'psout' ( temp structure{ temp 4-component vector of float Color})
2410:32          Constant:
2420:32            0 (const int)
2430:32        Constant:
2440:32          0.000000
2450:32          0.000000
2460:32          0.000000
2470:32          0.000000
2480:33      Branch: Return with expression
2490:33        'psout' ( temp structure{ temp 4-component vector of float Color})
2500:30  Function Definition: main( ( temp void)
2510:30    Function Parameters:
2520:?     Sequence
2530:30      Sequence
2540:30        move second child to first child ( temp 4-component vector of float)
2550:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
2560:30          Color: direct index for structure ( temp 4-component vector of float)
2570:30            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
2580:30            Constant:
2590:30              0 (const int)
2600:?   Linker Objects
2610:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float uf4})
2620:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
263
264// Module Version 10000
265// Generated by (magic number): 80007
266// Id's are bound by 96
267
268                              Capability Shader
269               1:             ExtInstImport  "GLSL.std.450"
270                              MemoryModel Logical GLSL450
271                              EntryPoint Fragment 4  "main" 90
272                              ExecutionMode 4 OriginUpperLeft
273                              Source HLSL 500
274                              Name 4  "main"
275                              Name 11  "Bug1(vf4;"
276                              Name 10  "a"
277                              Name 13  "PS_OUTPUT"
278                              MemberName 13(PS_OUTPUT) 0  "Color"
279                              Name 15  "@main("
280                              Name 17  "v04"
281                              Name 21  "v01"
282                              Name 25  "r00"
283                              Name 29  "r01"
284                              Name 33  "r02"
285                              Name 37  "r03"
286                              Name 41  "r10"
287                              Name 46  "r11"
288                              Name 51  "r12"
289                              Name 56  "r13"
290                              Name 61  "r20"
291                              Name 66  "r21"
292                              Name 71  "r22"
293                              Name 76  "r23"
294                              Name 82  "psout"
295                              Name 90  "@entryPointOutput.Color"
296                              Name 93  "$Global"
297                              MemberName 93($Global) 0  "uf4"
298                              Name 95  ""
299                              Decorate 90(@entryPointOutput.Color) Location 0
300                              MemberDecorate 93($Global) 0 Offset 0
301                              Decorate 93($Global) Block
302                              Decorate 95 DescriptorSet 0
303               2:             TypeVoid
304               3:             TypeFunction 2
305               6:             TypeFloat 32
306               7:             TypeVector 6(float) 4
307               8:             TypePointer Function 7(fvec4)
308               9:             TypeFunction 2 8(ptr)
309   13(PS_OUTPUT):             TypeStruct 7(fvec4)
310              14:             TypeFunction 13(PS_OUTPUT)
311              18:    6(float) Constant 0
312              19:    7(fvec4) ConstantComposite 18 18 18 18
313              20:             TypePointer Function 6(float)
314              22:             TypeBool
315              23:             TypeVector 22(bool) 4
316              24:             TypePointer Function 23(bvec4)
317              81:             TypePointer Function 13(PS_OUTPUT)
318              83:             TypeInt 32 1
319              84:     83(int) Constant 0
320              89:             TypePointer Output 7(fvec4)
32190(@entryPointOutput.Color):     89(ptr) Variable Output
322     93($Global):             TypeStruct 7(fvec4)
323              94:             TypePointer Uniform 93($Global)
324              95:     94(ptr) Variable Uniform
325         4(main):           2 Function None 3
326               5:             Label
327              91:13(PS_OUTPUT) FunctionCall 15(@main()
328              92:    7(fvec4) CompositeExtract 91 0
329                              Store 90(@entryPointOutput.Color) 92
330                              Return
331                              FunctionEnd
332   11(Bug1(vf4;):           2 Function None 9
333           10(a):      8(ptr) FunctionParameter
334              12:             Label
335         17(v04):      8(ptr) Variable Function
336         21(v01):     20(ptr) Variable Function
337         25(r00):     24(ptr) Variable Function
338         29(r01):     24(ptr) Variable Function
339         33(r02):     24(ptr) Variable Function
340         37(r03):     24(ptr) Variable Function
341         41(r10):     24(ptr) Variable Function
342         46(r11):     24(ptr) Variable Function
343         51(r12):     24(ptr) Variable Function
344         56(r13):     24(ptr) Variable Function
345         61(r20):     24(ptr) Variable Function
346         66(r21):     24(ptr) Variable Function
347         71(r22):     24(ptr) Variable Function
348         76(r23):     24(ptr) Variable Function
349                              Store 17(v04) 19
350                              Store 21(v01) 18
351              26:    7(fvec4) Load 10(a)
352              27:    7(fvec4) Load 17(v04)
353              28:   23(bvec4) FOrdEqual 26 27
354                              Store 25(r00) 28
355              30:    7(fvec4) Load 10(a)
356              31:    7(fvec4) Load 17(v04)
357              32:   23(bvec4) FOrdNotEqual 30 31
358                              Store 29(r01) 32
359              34:    7(fvec4) Load 10(a)
360              35:    7(fvec4) Load 17(v04)
361              36:   23(bvec4) FOrdLessThan 34 35
362                              Store 33(r02) 36
363              38:    7(fvec4) Load 10(a)
364              39:    7(fvec4) Load 17(v04)
365              40:   23(bvec4) FOrdGreaterThan 38 39
366                              Store 37(r03) 40
367              42:    7(fvec4) Load 10(a)
368              43:    6(float) Load 21(v01)
369              44:    7(fvec4) CompositeConstruct 43 43 43 43
370              45:   23(bvec4) FOrdEqual 42 44
371                              Store 41(r10) 45
372              47:    7(fvec4) Load 10(a)
373              48:    6(float) Load 21(v01)
374              49:    7(fvec4) CompositeConstruct 48 48 48 48
375              50:   23(bvec4) FOrdNotEqual 47 49
376                              Store 46(r11) 50
377              52:    7(fvec4) Load 10(a)
378              53:    6(float) Load 21(v01)
379              54:    7(fvec4) CompositeConstruct 53 53 53 53
380              55:   23(bvec4) FOrdLessThan 52 54
381                              Store 51(r12) 55
382              57:    7(fvec4) Load 10(a)
383              58:    6(float) Load 21(v01)
384              59:    7(fvec4) CompositeConstruct 58 58 58 58
385              60:   23(bvec4) FOrdGreaterThan 57 59
386                              Store 56(r13) 60
387              62:    6(float) Load 21(v01)
388              63:    7(fvec4) CompositeConstruct 62 62 62 62
389              64:    7(fvec4) Load 10(a)
390              65:   23(bvec4) FOrdEqual 63 64
391                              Store 61(r20) 65
392              67:    6(float) Load 21(v01)
393              68:    7(fvec4) CompositeConstruct 67 67 67 67
394              69:    7(fvec4) Load 10(a)
395              70:   23(bvec4) FOrdNotEqual 68 69
396                              Store 66(r21) 70
397              72:    6(float) Load 21(v01)
398              73:    7(fvec4) CompositeConstruct 72 72 72 72
399              74:    7(fvec4) Load 10(a)
400              75:   23(bvec4) FOrdLessThan 73 74
401                              Store 71(r22) 75
402              77:    6(float) Load 21(v01)
403              78:    7(fvec4) CompositeConstruct 77 77 77 77
404              79:    7(fvec4) Load 10(a)
405              80:   23(bvec4) FOrdGreaterThan 78 79
406                              Store 76(r23) 80
407                              Return
408                              FunctionEnd
409      15(@main():13(PS_OUTPUT) Function None 14
410              16:             Label
411       82(psout):     81(ptr) Variable Function
412              85:      8(ptr) AccessChain 82(psout) 84
413                              Store 85 19
414              86:13(PS_OUTPUT) Load 82(psout)
415                              ReturnValue 86
416                              FunctionEnd
417