• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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): 8000a
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                              Decorate 95 Binding 0
304               2:             TypeVoid
305               3:             TypeFunction 2
306               6:             TypeFloat 32
307               7:             TypeVector 6(float) 4
308               8:             TypePointer Function 7(fvec4)
309               9:             TypeFunction 2 8(ptr)
310   13(PS_OUTPUT):             TypeStruct 7(fvec4)
311              14:             TypeFunction 13(PS_OUTPUT)
312              18:    6(float) Constant 0
313              19:    7(fvec4) ConstantComposite 18 18 18 18
314              20:             TypePointer Function 6(float)
315              22:             TypeBool
316              23:             TypeVector 22(bool) 4
317              24:             TypePointer Function 23(bvec4)
318              81:             TypePointer Function 13(PS_OUTPUT)
319              83:             TypeInt 32 1
320              84:     83(int) Constant 0
321              89:             TypePointer Output 7(fvec4)
32290(@entryPointOutput.Color):     89(ptr) Variable Output
323     93($Global):             TypeStruct 7(fvec4)
324              94:             TypePointer Uniform 93($Global)
325              95:     94(ptr) Variable Uniform
326         4(main):           2 Function None 3
327               5:             Label
328              91:13(PS_OUTPUT) FunctionCall 15(@main()
329              92:    7(fvec4) CompositeExtract 91 0
330                              Store 90(@entryPointOutput.Color) 92
331                              Return
332                              FunctionEnd
333   11(Bug1(vf4;):           2 Function None 9
334           10(a):      8(ptr) FunctionParameter
335              12:             Label
336         17(v04):      8(ptr) Variable Function
337         21(v01):     20(ptr) Variable Function
338         25(r00):     24(ptr) Variable Function
339         29(r01):     24(ptr) Variable Function
340         33(r02):     24(ptr) Variable Function
341         37(r03):     24(ptr) Variable Function
342         41(r10):     24(ptr) Variable Function
343         46(r11):     24(ptr) Variable Function
344         51(r12):     24(ptr) Variable Function
345         56(r13):     24(ptr) Variable Function
346         61(r20):     24(ptr) Variable Function
347         66(r21):     24(ptr) Variable Function
348         71(r22):     24(ptr) Variable Function
349         76(r23):     24(ptr) Variable Function
350                              Store 17(v04) 19
351                              Store 21(v01) 18
352              26:    7(fvec4) Load 10(a)
353              27:    7(fvec4) Load 17(v04)
354              28:   23(bvec4) FOrdEqual 26 27
355                              Store 25(r00) 28
356              30:    7(fvec4) Load 10(a)
357              31:    7(fvec4) Load 17(v04)
358              32:   23(bvec4) FUnordNotEqual 30 31
359                              Store 29(r01) 32
360              34:    7(fvec4) Load 10(a)
361              35:    7(fvec4) Load 17(v04)
362              36:   23(bvec4) FOrdLessThan 34 35
363                              Store 33(r02) 36
364              38:    7(fvec4) Load 10(a)
365              39:    7(fvec4) Load 17(v04)
366              40:   23(bvec4) FOrdGreaterThan 38 39
367                              Store 37(r03) 40
368              42:    7(fvec4) Load 10(a)
369              43:    6(float) Load 21(v01)
370              44:    7(fvec4) CompositeConstruct 43 43 43 43
371              45:   23(bvec4) FOrdEqual 42 44
372                              Store 41(r10) 45
373              47:    7(fvec4) Load 10(a)
374              48:    6(float) Load 21(v01)
375              49:    7(fvec4) CompositeConstruct 48 48 48 48
376              50:   23(bvec4) FUnordNotEqual 47 49
377                              Store 46(r11) 50
378              52:    7(fvec4) Load 10(a)
379              53:    6(float) Load 21(v01)
380              54:    7(fvec4) CompositeConstruct 53 53 53 53
381              55:   23(bvec4) FOrdLessThan 52 54
382                              Store 51(r12) 55
383              57:    7(fvec4) Load 10(a)
384              58:    6(float) Load 21(v01)
385              59:    7(fvec4) CompositeConstruct 58 58 58 58
386              60:   23(bvec4) FOrdGreaterThan 57 59
387                              Store 56(r13) 60
388              62:    6(float) Load 21(v01)
389              63:    7(fvec4) CompositeConstruct 62 62 62 62
390              64:    7(fvec4) Load 10(a)
391              65:   23(bvec4) FOrdEqual 63 64
392                              Store 61(r20) 65
393              67:    6(float) Load 21(v01)
394              68:    7(fvec4) CompositeConstruct 67 67 67 67
395              69:    7(fvec4) Load 10(a)
396              70:   23(bvec4) FUnordNotEqual 68 69
397                              Store 66(r21) 70
398              72:    6(float) Load 21(v01)
399              73:    7(fvec4) CompositeConstruct 72 72 72 72
400              74:    7(fvec4) Load 10(a)
401              75:   23(bvec4) FOrdLessThan 73 74
402                              Store 71(r22) 75
403              77:    6(float) Load 21(v01)
404              78:    7(fvec4) CompositeConstruct 77 77 77 77
405              79:    7(fvec4) Load 10(a)
406              80:   23(bvec4) FOrdGreaterThan 78 79
407                              Store 76(r23) 80
408                              Return
409                              FunctionEnd
410      15(@main():13(PS_OUTPUT) Function None 14
411              16:             Label
412       82(psout):     81(ptr) Variable Function
413              85:      8(ptr) AccessChain 82(psout) 84
414                              Store 85 19
415              86:13(PS_OUTPUT) Load 82(psout)
416                              ReturnValue 86
417                              FunctionEnd
418