• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.boolConv.vert
2Shader version: 500
30:? Sequence
40:1  Sequence
50:1    move second child to first child ( temp bool)
60:1      'b' ( global bool)
70:1      Constant:
80:1        true (const bool)
90:3  Function Definition: @main( ( temp 4-component vector of float)
100:3    Function Parameters:
110:?     Sequence
120:4      Sequence
130:4        move second child to first child ( temp int)
140:4          'r' ( temp int)
150:4          Constant:
160:4            0 (const int)
170:6      add second child into first child ( temp int)
180:6        'r' ( temp int)
190:6        add ( temp int)
200:6          Convert bool to int ( temp int)
210:6            'a' ( global bool)
220:6          Convert bool to int ( temp int)
230:6            'b' ( global bool)
240:7      add second child into first child ( temp int)
250:7        'r' ( temp int)
260:7        subtract ( temp int)
270:7          Convert bool to int ( temp int)
280:7            'a' ( global bool)
290:7          Convert bool to int ( temp int)
300:7            'b' ( global bool)
310:8      add second child into first child ( temp int)
320:8        'r' ( temp int)
330:8        component-wise multiply ( temp int)
340:8          Convert bool to int ( temp int)
350:8            'a' ( global bool)
360:8          Convert bool to int ( temp int)
370:8            'b' ( global bool)
380:9      add second child into first child ( temp int)
390:9        'r' ( temp int)
400:9        divide ( temp int)
410:9          Convert bool to int ( temp int)
420:9            'a' ( global bool)
430:9          Convert bool to int ( temp int)
440:9            'b' ( global bool)
450:10      add second child into first child ( temp int)
460:10        'r' ( temp int)
470:10        mod ( temp int)
480:10          Convert bool to int ( temp int)
490:10            'a' ( global bool)
500:10          Convert bool to int ( temp int)
510:10            'b' ( global bool)
520:12      add second child into first child ( temp int)
530:12        'r' ( temp int)
540:12        bitwise and ( temp int)
550:12          Convert bool to int ( temp int)
560:12            'a' ( global bool)
570:12          Convert bool to int ( temp int)
580:12            'b' ( global bool)
590:13      add second child into first child ( temp int)
600:13        'r' ( temp int)
610:13        inclusive-or ( temp int)
620:13          Convert bool to int ( temp int)
630:13            'a' ( global bool)
640:13          Convert bool to int ( temp int)
650:13            'b' ( global bool)
660:14      add second child into first child ( temp int)
670:14        'r' ( temp int)
680:14        exclusive-or ( temp int)
690:14          Convert bool to int ( temp int)
700:14            'a' ( global bool)
710:14          Convert bool to int ( temp int)
720:14            'b' ( global bool)
730:16      add second child into first child ( temp int)
740:16        'r' ( temp int)
750:16        left-shift ( temp int)
760:16          Convert bool to int ( temp int)
770:16            'a' ( global bool)
780:16          Convert bool to int ( temp int)
790:16            'b' ( global bool)
800:17      add second child into first child ( temp int)
810:17        'r' ( temp int)
820:17        right-shift ( temp int)
830:17          Convert bool to int ( temp int)
840:17            'a' ( global bool)
850:17          Convert bool to int ( temp int)
860:17            'b' ( global bool)
870:19      Branch: Return with expression
880:19        Construct vec4 ( temp 4-component vector of float)
890:19          Convert int to float ( temp float)
900:19            'r' ( temp int)
910:3  Function Definition: main( ( temp void)
920:3    Function Parameters:
930:?     Sequence
940:3      move second child to first child ( temp 4-component vector of float)
950:?         '@entryPointOutput' ( out 4-component vector of float Position)
960:3        Function Call: @main( ( temp 4-component vector of float)
970:?   Linker Objects
980:?     'a' ( global bool)
990:?     'b' ( global bool)
1000:?     '@entryPointOutput' ( out 4-component vector of float Position)
101
102
103Linked vertex stage:
104
105
106Shader version: 500
1070:? Sequence
1080:1  Sequence
1090:1    move second child to first child ( temp bool)
1100:1      'b' ( global bool)
1110:1      Constant:
1120:1        true (const bool)
1130:3  Function Definition: @main( ( temp 4-component vector of float)
1140:3    Function Parameters:
1150:?     Sequence
1160:4      Sequence
1170:4        move second child to first child ( temp int)
1180:4          'r' ( temp int)
1190:4          Constant:
1200:4            0 (const int)
1210:6      add second child into first child ( temp int)
1220:6        'r' ( temp int)
1230:6        add ( temp int)
1240:6          Convert bool to int ( temp int)
1250:6            'a' ( global bool)
1260:6          Convert bool to int ( temp int)
1270:6            'b' ( global bool)
1280:7      add second child into first child ( temp int)
1290:7        'r' ( temp int)
1300:7        subtract ( temp int)
1310:7          Convert bool to int ( temp int)
1320:7            'a' ( global bool)
1330:7          Convert bool to int ( temp int)
1340:7            'b' ( global bool)
1350:8      add second child into first child ( temp int)
1360:8        'r' ( temp int)
1370:8        component-wise multiply ( temp int)
1380:8          Convert bool to int ( temp int)
1390:8            'a' ( global bool)
1400:8          Convert bool to int ( temp int)
1410:8            'b' ( global bool)
1420:9      add second child into first child ( temp int)
1430:9        'r' ( temp int)
1440:9        divide ( temp int)
1450:9          Convert bool to int ( temp int)
1460:9            'a' ( global bool)
1470:9          Convert bool to int ( temp int)
1480:9            'b' ( global bool)
1490:10      add second child into first child ( temp int)
1500:10        'r' ( temp int)
1510:10        mod ( temp int)
1520:10          Convert bool to int ( temp int)
1530:10            'a' ( global bool)
1540:10          Convert bool to int ( temp int)
1550:10            'b' ( global bool)
1560:12      add second child into first child ( temp int)
1570:12        'r' ( temp int)
1580:12        bitwise and ( temp int)
1590:12          Convert bool to int ( temp int)
1600:12            'a' ( global bool)
1610:12          Convert bool to int ( temp int)
1620:12            'b' ( global bool)
1630:13      add second child into first child ( temp int)
1640:13        'r' ( temp int)
1650:13        inclusive-or ( temp int)
1660:13          Convert bool to int ( temp int)
1670:13            'a' ( global bool)
1680:13          Convert bool to int ( temp int)
1690:13            'b' ( global bool)
1700:14      add second child into first child ( temp int)
1710:14        'r' ( temp int)
1720:14        exclusive-or ( temp int)
1730:14          Convert bool to int ( temp int)
1740:14            'a' ( global bool)
1750:14          Convert bool to int ( temp int)
1760:14            'b' ( global bool)
1770:16      add second child into first child ( temp int)
1780:16        'r' ( temp int)
1790:16        left-shift ( temp int)
1800:16          Convert bool to int ( temp int)
1810:16            'a' ( global bool)
1820:16          Convert bool to int ( temp int)
1830:16            'b' ( global bool)
1840:17      add second child into first child ( temp int)
1850:17        'r' ( temp int)
1860:17        right-shift ( temp int)
1870:17          Convert bool to int ( temp int)
1880:17            'a' ( global bool)
1890:17          Convert bool to int ( temp int)
1900:17            'b' ( global bool)
1910:19      Branch: Return with expression
1920:19        Construct vec4 ( temp 4-component vector of float)
1930:19          Convert int to float ( temp float)
1940:19            'r' ( temp int)
1950:3  Function Definition: main( ( temp void)
1960:3    Function Parameters:
1970:?     Sequence
1980:3      move second child to first child ( temp 4-component vector of float)
1990:?         '@entryPointOutput' ( out 4-component vector of float Position)
2000:3        Function Call: @main( ( temp 4-component vector of float)
2010:?   Linker Objects
2020:?     'a' ( global bool)
2030:?     'b' ( global bool)
2040:?     '@entryPointOutput' ( out 4-component vector of float Position)
205
206// Module Version 10000
207// Generated by (magic number): 8000a
208// Id's are bound by 99
209
210                              Capability Shader
211               1:             ExtInstImport  "GLSL.std.450"
212                              MemoryModel Logical GLSL450
213                              EntryPoint Vertex 4  "main" 97
214                              Source HLSL 500
215                              Name 4  "main"
216                              Name 9  "@main("
217                              Name 13  "b"
218                              Name 17  "r"
219                              Name 19  "a"
220                              Name 97  "@entryPointOutput"
221                              Decorate 97(@entryPointOutput) BuiltIn Position
222               2:             TypeVoid
223               3:             TypeFunction 2
224               6:             TypeFloat 32
225               7:             TypeVector 6(float) 4
226               8:             TypeFunction 7(fvec4)
227              11:             TypeBool
228              12:             TypePointer Private 11(bool)
229           13(b):     12(ptr) Variable Private
230              14:    11(bool) ConstantTrue
231              15:             TypeInt 32 1
232              16:             TypePointer Function 15(int)
233              18:     15(int) Constant 0
234           19(a):     12(ptr) Variable Private
235              21:     15(int) Constant 1
236              96:             TypePointer Output 7(fvec4)
23797(@entryPointOutput):     96(ptr) Variable Output
238         4(main):           2 Function None 3
239               5:             Label
240                              Store 13(b) 14
241              98:    7(fvec4) FunctionCall 9(@main()
242                              Store 97(@entryPointOutput) 98
243                              Return
244                              FunctionEnd
245       9(@main():    7(fvec4) Function None 8
246              10:             Label
247           17(r):     16(ptr) Variable Function
248                              Store 17(r) 18
249              20:    11(bool) Load 19(a)
250              22:     15(int) Select 20 21 18
251              23:    11(bool) Load 13(b)
252              24:     15(int) Select 23 21 18
253              25:     15(int) IAdd 22 24
254              26:     15(int) Load 17(r)
255              27:     15(int) IAdd 26 25
256                              Store 17(r) 27
257              28:    11(bool) Load 19(a)
258              29:     15(int) Select 28 21 18
259              30:    11(bool) Load 13(b)
260              31:     15(int) Select 30 21 18
261              32:     15(int) ISub 29 31
262              33:     15(int) Load 17(r)
263              34:     15(int) IAdd 33 32
264                              Store 17(r) 34
265              35:    11(bool) Load 19(a)
266              36:     15(int) Select 35 21 18
267              37:    11(bool) Load 13(b)
268              38:     15(int) Select 37 21 18
269              39:     15(int) IMul 36 38
270              40:     15(int) Load 17(r)
271              41:     15(int) IAdd 40 39
272                              Store 17(r) 41
273              42:    11(bool) Load 19(a)
274              43:     15(int) Select 42 21 18
275              44:    11(bool) Load 13(b)
276              45:     15(int) Select 44 21 18
277              46:     15(int) SDiv 43 45
278              47:     15(int) Load 17(r)
279              48:     15(int) IAdd 47 46
280                              Store 17(r) 48
281              49:    11(bool) Load 19(a)
282              50:     15(int) Select 49 21 18
283              51:    11(bool) Load 13(b)
284              52:     15(int) Select 51 21 18
285              53:     15(int) SMod 50 52
286              54:     15(int) Load 17(r)
287              55:     15(int) IAdd 54 53
288                              Store 17(r) 55
289              56:    11(bool) Load 19(a)
290              57:     15(int) Select 56 21 18
291              58:    11(bool) Load 13(b)
292              59:     15(int) Select 58 21 18
293              60:     15(int) BitwiseAnd 57 59
294              61:     15(int) Load 17(r)
295              62:     15(int) IAdd 61 60
296                              Store 17(r) 62
297              63:    11(bool) Load 19(a)
298              64:     15(int) Select 63 21 18
299              65:    11(bool) Load 13(b)
300              66:     15(int) Select 65 21 18
301              67:     15(int) BitwiseOr 64 66
302              68:     15(int) Load 17(r)
303              69:     15(int) IAdd 68 67
304                              Store 17(r) 69
305              70:    11(bool) Load 19(a)
306              71:     15(int) Select 70 21 18
307              72:    11(bool) Load 13(b)
308              73:     15(int) Select 72 21 18
309              74:     15(int) BitwiseXor 71 73
310              75:     15(int) Load 17(r)
311              76:     15(int) IAdd 75 74
312                              Store 17(r) 76
313              77:    11(bool) Load 19(a)
314              78:     15(int) Select 77 21 18
315              79:    11(bool) Load 13(b)
316              80:     15(int) Select 79 21 18
317              81:     15(int) ShiftLeftLogical 78 80
318              82:     15(int) Load 17(r)
319              83:     15(int) IAdd 82 81
320                              Store 17(r) 83
321              84:    11(bool) Load 19(a)
322              85:     15(int) Select 84 21 18
323              86:    11(bool) Load 13(b)
324              87:     15(int) Select 86 21 18
325              88:     15(int) ShiftRightArithmetic 85 87
326              89:     15(int) Load 17(r)
327              90:     15(int) IAdd 89 88
328                              Store 17(r) 90
329              91:     15(int) Load 17(r)
330              92:    6(float) ConvertSToF 91
331              93:    7(fvec4) CompositeConstruct 92 92 92 92
332                              ReturnValue 93
333                              FunctionEnd
334