Home | History | Annotate | Download | only in baseResults
      1 hlsl.inoutquals.frag
      2 Shader version: 500
      3 gl_FragCoord origin is upper left
      4 using depth_any
      5 0:? Sequence
      6 0:8  Function Definition: MyFunc(f1;f1;f1;f1; ( temp void)
      7 0:8    Function Parameters: 
      8 0:8      'x' ( in float)
      9 0:8      'y' ( out float)
     10 0:8      'z' ( inout float)
     11 0:8      'w' ( inout float)
     12 0:?     Sequence
     13 0:9      move second child to first child ( temp float)
     14 0:9        'y' ( out float)
     15 0:9        'x' ( in float)
     16 0:10      move second child to first child ( temp float)
     17 0:10        'z' ( inout float)
     18 0:10        'y' ( out float)
     19 0:11      move second child to first child ( temp float)
     20 0:11        'x' ( in float)
     21 0:11        Constant:
     22 0:11          -1.000000
     23 0:12      multiply second child into first child ( temp float)
     24 0:12        'w' ( inout float)
     25 0:12        Constant:
     26 0:12          1.000000
     27 0:16  Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     28 0:16    Function Parameters: 
     29 0:16      'inpos' ( in 4-component vector of float)
     30 0:16      'sampleMask' ( out int)
     31 0:?     Sequence
     32 0:19      Sequence
     33 0:19        move second child to first child ( temp float)
     34 0:19          'x' ( temp float)
     35 0:19          Constant:
     36 0:19            7.000000
     37 0:19        move second child to first child ( temp float)
     38 0:19          'z' ( temp float)
     39 0:19          Constant:
     40 0:19            3.000000
     41 0:20      Function Call: MyFunc(f1;f1;f1;f1; ( temp void)
     42 0:20        'x' ( temp float)
     43 0:20        'y' ( temp float)
     44 0:20        'z' ( temp float)
     45 0:20        direct index ( temp float)
     46 0:20          'inpos' ( in 4-component vector of float)
     47 0:20          Constant:
     48 0:20            3 (const int)
     49 0:22      move second child to first child ( temp 4-component vector of float)
     50 0:22        Color: direct index for structure ( temp 4-component vector of float)
     51 0:22          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     52 0:22          Constant:
     53 0:22            0 (const int)
     54 0:?         Construct vec4 ( temp 4-component vector of float)
     55 0:22          'x' ( temp float)
     56 0:22          'y' ( temp float)
     57 0:22          'z' ( temp float)
     58 0:22          Constant:
     59 0:22            1.000000
     60 0:23      move second child to first child ( temp float)
     61 0:23        Depth: direct index for structure ( temp float)
     62 0:23          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     63 0:23          Constant:
     64 0:23            1 (const int)
     65 0:23        direct index ( temp float)
     66 0:23          'inpos' ( in 4-component vector of float)
     67 0:23          Constant:
     68 0:23            3 (const int)
     69 0:25      Branch: Return with expression
     70 0:25        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     71 0:16  Function Definition: main( ( temp void)
     72 0:16    Function Parameters: 
     73 0:?     Sequence
     74 0:16      move second child to first child ( temp 4-component vector of float)
     75 0:?         'inpos' ( temp 4-component vector of float)
     76 0:?         'inpos' ( noperspective in 4-component vector of float FragCoord)
     77 0:16      Sequence
     78 0:16        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     79 0:16          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     80 0:16          Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     81 0:?             'inpos' ( temp 4-component vector of float)
     82 0:?             'sampleMask' ( temp int)
     83 0:16        move second child to first child ( temp 4-component vector of float)
     84 0:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
     85 0:16          Color: direct index for structure ( temp 4-component vector of float)
     86 0:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     87 0:16            Constant:
     88 0:16              0 (const int)
     89 0:16        move second child to first child ( temp float)
     90 0:?           '@entryPointOutput.Depth' ( out float FragDepth)
     91 0:16          Depth: direct index for structure ( temp float)
     92 0:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
     93 0:16            Constant:
     94 0:16              1 (const int)
     95 0:16      move second child to first child ( temp int)
     96 0:16        direct index ( out int SampleMaskIn)
     97 0:?           'sampleMask' ( out 1-element array of int SampleMaskIn)
     98 0:16          Constant:
     99 0:16            0 (const int)
    100 0:?         'sampleMask' ( temp int)
    101 0:?   Linker Objects
    102 0:?     '@entryPointOutput.Depth' ( out float FragDepth)
    103 0:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
    104 0:?     'inpos' ( noperspective in 4-component vector of float FragCoord)
    105 0:?     'sampleMask' ( out 1-element array of int SampleMaskIn)
    106 
    107 
    108 Linked fragment stage:
    109 
    110 
    111 Shader version: 500
    112 gl_FragCoord origin is upper left
    113 using depth_any
    114 0:? Sequence
    115 0:8  Function Definition: MyFunc(f1;f1;f1;f1; ( temp void)
    116 0:8    Function Parameters: 
    117 0:8      'x' ( in float)
    118 0:8      'y' ( out float)
    119 0:8      'z' ( inout float)
    120 0:8      'w' ( inout float)
    121 0:?     Sequence
    122 0:9      move second child to first child ( temp float)
    123 0:9        'y' ( out float)
    124 0:9        'x' ( in float)
    125 0:10      move second child to first child ( temp float)
    126 0:10        'z' ( inout float)
    127 0:10        'y' ( out float)
    128 0:11      move second child to first child ( temp float)
    129 0:11        'x' ( in float)
    130 0:11        Constant:
    131 0:11          -1.000000
    132 0:12      multiply second child into first child ( temp float)
    133 0:12        'w' ( inout float)
    134 0:12        Constant:
    135 0:12          1.000000
    136 0:16  Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    137 0:16    Function Parameters: 
    138 0:16      'inpos' ( in 4-component vector of float)
    139 0:16      'sampleMask' ( out int)
    140 0:?     Sequence
    141 0:19      Sequence
    142 0:19        move second child to first child ( temp float)
    143 0:19          'x' ( temp float)
    144 0:19          Constant:
    145 0:19            7.000000
    146 0:19        move second child to first child ( temp float)
    147 0:19          'z' ( temp float)
    148 0:19          Constant:
    149 0:19            3.000000
    150 0:20      Function Call: MyFunc(f1;f1;f1;f1; ( temp void)
    151 0:20        'x' ( temp float)
    152 0:20        'y' ( temp float)
    153 0:20        'z' ( temp float)
    154 0:20        direct index ( temp float)
    155 0:20          'inpos' ( in 4-component vector of float)
    156 0:20          Constant:
    157 0:20            3 (const int)
    158 0:22      move second child to first child ( temp 4-component vector of float)
    159 0:22        Color: direct index for structure ( temp 4-component vector of float)
    160 0:22          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    161 0:22          Constant:
    162 0:22            0 (const int)
    163 0:?         Construct vec4 ( temp 4-component vector of float)
    164 0:22          'x' ( temp float)
    165 0:22          'y' ( temp float)
    166 0:22          'z' ( temp float)
    167 0:22          Constant:
    168 0:22            1.000000
    169 0:23      move second child to first child ( temp float)
    170 0:23        Depth: direct index for structure ( temp float)
    171 0:23          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    172 0:23          Constant:
    173 0:23            1 (const int)
    174 0:23        direct index ( temp float)
    175 0:23          'inpos' ( in 4-component vector of float)
    176 0:23          Constant:
    177 0:23            3 (const int)
    178 0:25      Branch: Return with expression
    179 0:25        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    180 0:16  Function Definition: main( ( temp void)
    181 0:16    Function Parameters: 
    182 0:?     Sequence
    183 0:16      move second child to first child ( temp 4-component vector of float)
    184 0:?         'inpos' ( temp 4-component vector of float)
    185 0:?         'inpos' ( noperspective in 4-component vector of float FragCoord)
    186 0:16      Sequence
    187 0:16        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    188 0:16          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    189 0:16          Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    190 0:?             'inpos' ( temp 4-component vector of float)
    191 0:?             'sampleMask' ( temp int)
    192 0:16        move second child to first child ( temp 4-component vector of float)
    193 0:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
    194 0:16          Color: direct index for structure ( temp 4-component vector of float)
    195 0:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    196 0:16            Constant:
    197 0:16              0 (const int)
    198 0:16        move second child to first child ( temp float)
    199 0:?           '@entryPointOutput.Depth' ( out float FragDepth)
    200 0:16          Depth: direct index for structure ( temp float)
    201 0:16            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
    202 0:16            Constant:
    203 0:16              1 (const int)
    204 0:16      move second child to first child ( temp int)
    205 0:16        direct index ( out int SampleMaskIn)
    206 0:?           'sampleMask' ( out 1-element array of int SampleMaskIn)
    207 0:16          Constant:
    208 0:16            0 (const int)
    209 0:?         'sampleMask' ( temp int)
    210 0:?   Linker Objects
    211 0:?     '@entryPointOutput.Depth' ( out float FragDepth)
    212 0:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
    213 0:?     'inpos' ( noperspective in 4-component vector of float FragCoord)
    214 0:?     '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)
    284 78(@entryPointOutput.Color):     77(ptr) Variable Output
    285               81:             TypePointer Output 6(float)
    286 82(@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
    318 13(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
    334 23(@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