1hlsl.inoutquals.frag
2Shader version: 500
3gl_FragCoord origin is upper left
4using depth_any
50:? Sequence
60:8  Function Definition: MyFunc(f1;f1;f1;f1; ( temp void)
70:8    Function Parameters:
80:8      'x' ( in float)
90:8      'y' ( out float)
100:8      'z' ( inout float)
110:8      'w' ( inout float)
120:?     Sequence
130:9      move second child to first child ( temp float)
140:9        'y' ( out float)
150:9        'x' ( in float)
160:10      move second child to first child ( temp float)
170:10        'z' ( inout float)
180:10        'y' ( out float)
190:11      move second child to first child ( temp float)
200:11        'x' ( in float)
210:11        Constant:
220:11          -1.000000
230:12      multiply second child into first child ( temp float)
240:12        'w' ( inout float)
250:12        Constant:
260:12          1.000000
270:16  Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
280:16    Function Parameters:
290:16      'inpos' ( in 4-component vector of float)
300:16      'sampleMask' ( out int)
310:?     Sequence
320:19      Sequence
330:19        move second child to first child ( temp float)
340:19          'x' ( temp float)
350:19          Constant:
360:19            7.000000
370:19        move second child to first child ( temp float)
380:19          'z' ( temp float)
390:19          Constant:
400:19            3.000000
410:20      Function Call: MyFunc(f1;f1;f1;f1; ( temp void)
420:20        'x' ( temp float)
430:20        'y' ( temp float)
440:20        'z' ( temp float)
450:20        direct index ( temp float)
460:20          'inpos' ( in 4-component vector of float)
470:20          Constant:
480:20            3 (const int)
490:22      move second child to first child ( temp 4-component vector of float)
500:22        Color: direct index for structure ( temp 4-component vector of float)
510:22          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
520:22          Constant:
530:22            0 (const int)
540:?         Construct vec4 ( temp 4-component vector of float)
550:22          'x' ( temp float)
560:22          'y' ( temp float)
570:22          'z' ( temp float)
580:22          Constant:
590:22            1.000000
600:23      move second child to first child ( temp float)
610:23        Depth: direct index for structure ( temp float)
620:23          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
630:23          Constant:
640:23            1 (const int)
650:23        direct index ( temp float)
660:23          'inpos' ( in 4-component vector of float)
670:23          Constant:
680:23            3 (const int)
690:25      Branch: Return with expression
700:25        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
710:16  Function Definition: main( ( temp void)
720:16    Function Parameters:
730:?     Sequence
740:16      move second child to first child ( temp 4-component vector of float)
750:?         'inpos' ( temp 4-component vector of float)
760:?         'inpos' ( noperspective in 4-component vector of float FragCoord)
770:16      Sequence
780:16        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
790:16          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
800:16          Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
810:?             'inpos' ( temp 4-component vector of float)
820:?             'sampleMask' ( temp int)
830:16        move second child to first child ( temp 4-component vector of float)
840:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
850:16          Color: direct index for structure ( temp 4-component vector of float)
860:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
870:16            Constant:
880:16              0 (const int)
890:16        move second child to first child ( temp float)
900:?           '@entryPointOutput.Depth' ( out float FragDepth)
910:16          Depth: direct index for structure ( temp float)
920:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
930:16            Constant:
940:16              1 (const int)
950:16      move second child to first child ( temp int)
960:16        direct index ( out int SampleMaskIn)
970:?           'sampleMask' ( out 1-element array of int SampleMaskIn)
980:16          Constant:
990:16            0 (const int)
1000:?         'sampleMask' ( temp int)
1010:?   Linker Objects
1020:?     '@entryPointOutput.Depth' ( out float FragDepth)
1030:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1040:?     'inpos' ( noperspective in 4-component vector of float FragCoord)
1050:?     'sampleMask' ( out 1-element array of int SampleMaskIn)
106
107
108Linked fragment stage:
109
110
111Shader version: 500
112gl_FragCoord origin is upper left
113using depth_any
1140:? Sequence
1150:8  Function Definition: MyFunc(f1;f1;f1;f1; ( temp void)
1160:8    Function Parameters:
1170:8      'x' ( in float)
1180:8      'y' ( out float)
1190:8      'z' ( inout float)
1200:8      'w' ( inout float)
1210:?     Sequence
1220:9      move second child to first child ( temp float)
1230:9        'y' ( out float)
1240:9        'x' ( in float)
1250:10      move second child to first child ( temp float)
1260:10        'z' ( inout float)
1270:10        'y' ( out float)
1280:11      move second child to first child ( temp float)
1290:11        'x' ( in float)
1300:11        Constant:
1310:11          -1.000000
1320:12      multiply second child into first child ( temp float)
1330:12        'w' ( inout float)
1340:12        Constant:
1350:12          1.000000
1360:16  Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1370:16    Function Parameters:
1380:16      'inpos' ( in 4-component vector of float)
1390:16      'sampleMask' ( out int)
1400:?     Sequence
1410:19      Sequence
1420:19        move second child to first child ( temp float)
1430:19          'x' ( temp float)
1440:19          Constant:
1450:19            7.000000
1460:19        move second child to first child ( temp float)
1470:19          'z' ( temp float)
1480:19          Constant:
1490:19            3.000000
1500:20      Function Call: MyFunc(f1;f1;f1;f1; ( temp void)
1510:20        'x' ( temp float)
1520:20        'y' ( temp float)
1530:20        'z' ( temp float)
1540:20        direct index ( temp float)
1550:20          'inpos' ( in 4-component vector of float)
1560:20          Constant:
1570:20            3 (const int)
1580:22      move second child to first child ( temp 4-component vector of float)
1590:22        Color: direct index for structure ( temp 4-component vector of float)
1600:22          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1610:22          Constant:
1620:22            0 (const int)
1630:?         Construct vec4 ( temp 4-component vector of float)
1640:22          'x' ( temp float)
1650:22          'y' ( temp float)
1660:22          'z' ( temp float)
1670:22          Constant:
1680:22            1.000000
1690:23      move second child to first child ( temp float)
1700:23        Depth: direct index for structure ( temp float)
1710:23          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1720:23          Constant:
1730:23            1 (const int)
1740:23        direct index ( temp float)
1750:23          'inpos' ( in 4-component vector of float)
1760:23          Constant:
1770:23            3 (const int)
1780:25      Branch: Return with expression
1790:25        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1800:16  Function Definition: main( ( temp void)
1810:16    Function Parameters:
1820:?     Sequence
1830:16      move second child to first child ( temp 4-component vector of float)
1840:?         'inpos' ( temp 4-component vector of float)
1850:?         'inpos' ( noperspective in 4-component vector of float FragCoord)
1860:16      Sequence
1870:16        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1880:16          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1890:16          Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1900:?             'inpos' ( temp 4-component vector of float)
1910:?             'sampleMask' ( temp int)
1920:16        move second child to first child ( temp 4-component vector of float)
1930:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1940:16          Color: direct index for structure ( temp 4-component vector of float)
1950:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1960:16            Constant:
1970:16              0 (const int)
1980:16        move second child to first child ( temp float)
1990:?           '@entryPointOutput.Depth' ( out float FragDepth)
2000:16          Depth: direct index for structure ( temp float)
2010:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2020:16            Constant:
2030:16              1 (const int)
2040:16      move second child to first child ( temp int)
2050:16        direct index ( out int SampleMaskIn)
2060:?           'sampleMask' ( out 1-element array of int SampleMaskIn)
2070:16          Constant:
2080:16            0 (const int)
2090:?         'sampleMask' ( temp int)
2100:?   Linker Objects
2110:?     '@entryPointOutput.Depth' ( out float FragDepth)
2120:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
2130:?     'inpos' ( noperspective in 4-component vector of float FragCoord)
2140:?     'sampleMask' ( out 1-element array of int SampleMaskIn)
215
216// Module Version 10000
217// Generated by (magic number): 80007
218// Id's are bound by 92
219
220                              Capability Shader
221               1:             ExtInstImport  "GLSL.std.450"
222                              MemoryModel Logical GLSL450
223                              EntryPoint Fragment 4  "main" 68 78 82 88
224                              ExecutionMode 4 OriginUpperLeft
225                              ExecutionMode 4 DepthReplacing
226                              Source HLSL 500
227                              Name 4  "main"
228                              Name 13  "MyFunc(f1;f1;f1;f1;"
229                              Name 9  "x"
230                              Name 10  "y"
231                              Name 11  "z"
232                              Name 12  "w"
233                              Name 19  "PS_OUTPUT"
234                              MemberName 19(PS_OUTPUT) 0  "Color"
235                              MemberName 19(PS_OUTPUT) 1  "Depth"
236                              Name 23  "@main(vf4;i1;"
237                              Name 21  "inpos"
238                              Name 22  "sampleMask"
239                              Name 31  "x"
240                              Name 33  "z"
241                              Name 35  "y"
242                              Name 36  "param"
243                              Name 38  "param"
244                              Name 39  "param"
245                              Name 41  "param"
246                              Name 52  "psout"
247                              Name 66  "inpos"
248                              Name 68  "inpos"
249                              Name 70  "flattenTemp"
250                              Name 71  "sampleMask"
251                              Name 72  "param"
252                              Name 74  "param"
253                              Name 78  "@entryPointOutput.Color"
254                              Name 82  "@entryPointOutput.Depth"
255                              Name 88  "sampleMask"
256                              Decorate 68(inpos) NoPerspective
257                              Decorate 68(inpos) BuiltIn FragCoord
258                              Decorate 78(@entryPointOutput.Color) Location 0
259                              Decorate 82(@entryPointOutput.Depth) BuiltIn FragDepth
260                              Decorate 88(sampleMask) BuiltIn SampleMask
261               2:             TypeVoid
262               3:             TypeFunction 2
263               6:             TypeFloat 32
264               7:             TypePointer Function 6(float)
265               8:             TypeFunction 2 7(ptr) 7(ptr) 7(ptr) 7(ptr)
266              15:             TypeVector 6(float) 4
267              16:             TypePointer Function 15(fvec4)
268              17:             TypeInt 32 1
269              18:             TypePointer Function 17(int)
270   19(PS_OUTPUT):             TypeStruct 15(fvec4) 6(float)
271              20:             TypeFunction 19(PS_OUTPUT) 16(ptr) 18(ptr)
272              27:    6(float) Constant 3212836864
273              28:    6(float) Constant 1065353216
274              32:    6(float) Constant 1088421888
275              34:    6(float) Constant 1077936128
276              42:             TypeInt 32 0
277              43:     42(int) Constant 3
278              51:             TypePointer Function 19(PS_OUTPUT)
279              53:     17(int) Constant 0
280              59:     17(int) Constant 1
281              67:             TypePointer Input 15(fvec4)
282       68(inpos):     67(ptr) Variable Input
283              77:             TypePointer Output 15(fvec4)
28478(@entryPointOutput.Color):     77(ptr) Variable Output
285              81:             TypePointer Output 6(float)
28682(@entryPointOutput.Depth):     81(ptr) Variable Output
287              85:     42(int) Constant 1
288              86:             TypeArray 17(int) 85
289              87:             TypePointer Output 86
290  88(sampleMask):     87(ptr) Variable Output
291              90:             TypePointer Output 17(int)
292         4(main):           2 Function None 3
293               5:             Label
294       66(inpos):     16(ptr) Variable Function
295 70(flattenTemp):     51(ptr) Variable Function
296  71(sampleMask):     18(ptr) Variable Function
297       72(param):     16(ptr) Variable Function
298       74(param):     18(ptr) Variable Function
299              69:   15(fvec4) Load 68(inpos)
300                              Store 66(inpos) 69
301              73:   15(fvec4) Load 66(inpos)
302                              Store 72(param) 73
303              75:19(PS_OUTPUT) FunctionCall 23(@main(vf4;i1;) 72(param) 74(param)
304              76:     17(int) Load 74(param)
305                              Store 71(sampleMask) 76
306                              Store 70(flattenTemp) 75
307              79:     16(ptr) AccessChain 70(flattenTemp) 53
308              80:   15(fvec4) Load 79
309                              Store 78(@entryPointOutput.Color) 80
310              83:      7(ptr) AccessChain 70(flattenTemp) 59
311              84:    6(float) Load 83
312                              Store 82(@entryPointOutput.Depth) 84
313              89:     17(int) Load 71(sampleMask)
314              91:     90(ptr) AccessChain 88(sampleMask) 53
315                              Store 91 89
316                              Return
317                              FunctionEnd
31813(MyFunc(f1;f1;f1;f1;):           2 Function None 8
319            9(x):      7(ptr) FunctionParameter
320           10(y):      7(ptr) FunctionParameter
321           11(z):      7(ptr) FunctionParameter
322           12(w):      7(ptr) FunctionParameter
323              14:             Label
324              25:    6(float) Load 9(x)
325                              Store 10(y) 25
326              26:    6(float) Load 10(y)
327                              Store 11(z) 26
328                              Store 9(x) 27
329              29:    6(float) Load 12(w)
330              30:    6(float) FMul 29 28
331                              Store 12(w) 30
332                              Return
333                              FunctionEnd
33423(@main(vf4;i1;):19(PS_OUTPUT) Function None 20
335       21(inpos):     16(ptr) FunctionParameter
336  22(sampleMask):     18(ptr) FunctionParameter
337              24:             Label
338           31(x):      7(ptr) Variable Function
339           33(z):      7(ptr) Variable Function
340           35(y):      7(ptr) Variable Function
341       36(param):      7(ptr) Variable Function
342       38(param):      7(ptr) Variable Function
343       39(param):      7(ptr) Variable Function
344       41(param):      7(ptr) Variable Function
345       52(psout):     51(ptr) Variable Function
346                              Store 31(x) 32
347                              Store 33(z) 34
348              37:    6(float) Load 31(x)
349                              Store 36(param) 37
350              40:    6(float) Load 33(z)
351                              Store 39(param) 40
352              44:      7(ptr) AccessChain 21(inpos) 43
353              45:    6(float) Load 44
354                              Store 41(param) 45
355              46:           2 FunctionCall 13(MyFunc(f1;f1;f1;f1;) 36(param) 38(param) 39(param) 41(param)
356              47:    6(float) Load 38(param)
357                              Store 35(y) 47
358              48:    6(float) Load 39(param)
359                              Store 33(z) 48
360              49:    6(float) Load 41(param)
361              50:      7(ptr) AccessChain 21(inpos) 43
362                              Store 50 49
363              54:    6(float) Load 31(x)
364              55:    6(float) Load 35(y)
365              56:    6(float) Load 33(z)
366              57:   15(fvec4) CompositeConstruct 54 55 56 28
367              58:     16(ptr) AccessChain 52(psout) 53
368                              Store 58 57
369              60:      7(ptr) AccessChain 21(inpos) 43
370              61:    6(float) Load 60
371              62:      7(ptr) AccessChain 52(psout) 59
372                              Store 62 61
373              63:19(PS_OUTPUT) Load 52(psout)
374                              ReturnValue 63
375                              FunctionEnd
376