Home | History | Annotate | Download | only in baseResults
      1 hlsl.clipdistance-2.frag
      2 Shader version: 500
      3 gl_FragCoord origin is upper left
      4 0:? Sequence
      5 0:4  Function Definition: @main(vf4;vf2[2];vf2[2]; ( temp 4-component vector of float)
      6 0:4    Function Parameters: 
      7 0:4      'pos' ( in 4-component vector of float)
      8 0:4      'clip' ( in 2-element array of 2-component vector of float)
      9 0:4      'cull' ( in 2-element array of 2-component vector of float)
     10 0:?     Sequence
     11 0:6      Branch: Return with expression
     12 0:6        add ( temp 4-component vector of float)
     13 0:6          add ( temp 4-component vector of float)
     14 0:6            'pos' ( in 4-component vector of float)
     15 0:6            direct index ( temp float)
     16 0:6              direct index ( temp 2-component vector of float)
     17 0:6                'clip' ( in 2-element array of 2-component vector of float)
     18 0:6                Constant:
     19 0:6                  0 (const int)
     20 0:6              Constant:
     21 0:6                0 (const int)
     22 0:6          direct index ( temp float)
     23 0:6            direct index ( temp 2-component vector of float)
     24 0:6              'cull' ( in 2-element array of 2-component vector of float)
     25 0:6              Constant:
     26 0:6                0 (const int)
     27 0:6            Constant:
     28 0:6              0 (const int)
     29 0:4  Function Definition: main( ( temp void)
     30 0:4    Function Parameters: 
     31 0:?     Sequence
     32 0:4      move second child to first child ( temp 4-component vector of float)
     33 0:?         'pos' ( temp 4-component vector of float)
     34 0:?         'pos' ( in 4-component vector of float FragCoord)
     35 0:?       Sequence
     36 0:4        move second child to first child ( temp float)
     37 0:4          direct index ( temp float)
     38 0:4            direct index ( temp 2-component vector of float)
     39 0:?               'clip' ( temp 2-element array of 2-component vector of float)
     40 0:4              Constant:
     41 0:4                0 (const int)
     42 0:4            Constant:
     43 0:4              0 (const int)
     44 0:4          direct index ( in float ClipDistance)
     45 0:?             'clip' ( in 4-element array of float ClipDistance)
     46 0:4            Constant:
     47 0:4              0 (const int)
     48 0:4        move second child to first child ( temp float)
     49 0:4          direct index ( temp float)
     50 0:4            direct index ( temp 2-component vector of float)
     51 0:?               'clip' ( temp 2-element array of 2-component vector of float)
     52 0:4              Constant:
     53 0:4                0 (const int)
     54 0:4            Constant:
     55 0:4              1 (const int)
     56 0:4          direct index ( in float ClipDistance)
     57 0:?             'clip' ( in 4-element array of float ClipDistance)
     58 0:4            Constant:
     59 0:4              1 (const int)
     60 0:4        move second child to first child ( temp float)
     61 0:4          direct index ( temp float)
     62 0:4            direct index ( temp 2-component vector of float)
     63 0:?               'clip' ( temp 2-element array of 2-component vector of float)
     64 0:4              Constant:
     65 0:4                1 (const int)
     66 0:4            Constant:
     67 0:4              0 (const int)
     68 0:4          direct index ( in float ClipDistance)
     69 0:?             'clip' ( in 4-element array of float ClipDistance)
     70 0:4            Constant:
     71 0:4              2 (const int)
     72 0:4        move second child to first child ( temp float)
     73 0:4          direct index ( temp float)
     74 0:4            direct index ( temp 2-component vector of float)
     75 0:?               'clip' ( temp 2-element array of 2-component vector of float)
     76 0:4              Constant:
     77 0:4                1 (const int)
     78 0:4            Constant:
     79 0:4              1 (const int)
     80 0:4          direct index ( in float ClipDistance)
     81 0:?             'clip' ( in 4-element array of float ClipDistance)
     82 0:4            Constant:
     83 0:4              3 (const int)
     84 0:?       Sequence
     85 0:4        move second child to first child ( temp float)
     86 0:4          direct index ( temp float)
     87 0:4            direct index ( temp 2-component vector of float)
     88 0:?               'cull' ( temp 2-element array of 2-component vector of float)
     89 0:4              Constant:
     90 0:4                0 (const int)
     91 0:4            Constant:
     92 0:4              0 (const int)
     93 0:4          direct index ( in float CullDistance)
     94 0:?             'cull' ( in 4-element array of float CullDistance)
     95 0:4            Constant:
     96 0:4              0 (const int)
     97 0:4        move second child to first child ( temp float)
     98 0:4          direct index ( temp float)
     99 0:4            direct index ( temp 2-component vector of float)
    100 0:?               'cull' ( temp 2-element array of 2-component vector of float)
    101 0:4              Constant:
    102 0:4                0 (const int)
    103 0:4            Constant:
    104 0:4              1 (const int)
    105 0:4          direct index ( in float CullDistance)
    106 0:?             'cull' ( in 4-element array of float CullDistance)
    107 0:4            Constant:
    108 0:4              1 (const int)
    109 0:4        move second child to first child ( temp float)
    110 0:4          direct index ( temp float)
    111 0:4            direct index ( temp 2-component vector of float)
    112 0:?               'cull' ( temp 2-element array of 2-component vector of float)
    113 0:4              Constant:
    114 0:4                1 (const int)
    115 0:4            Constant:
    116 0:4              0 (const int)
    117 0:4          direct index ( in float CullDistance)
    118 0:?             'cull' ( in 4-element array of float CullDistance)
    119 0:4            Constant:
    120 0:4              2 (const int)
    121 0:4        move second child to first child ( temp float)
    122 0:4          direct index ( temp float)
    123 0:4            direct index ( temp 2-component vector of float)
    124 0:?               'cull' ( temp 2-element array of 2-component vector of float)
    125 0:4              Constant:
    126 0:4                1 (const int)
    127 0:4            Constant:
    128 0:4              1 (const int)
    129 0:4          direct index ( in float CullDistance)
    130 0:?             'cull' ( in 4-element array of float CullDistance)
    131 0:4            Constant:
    132 0:4              3 (const int)
    133 0:4      move second child to first child ( temp 4-component vector of float)
    134 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    135 0:4        Function Call: @main(vf4;vf2[2];vf2[2]; ( temp 4-component vector of float)
    136 0:?           'pos' ( temp 4-component vector of float)
    137 0:?           'clip' ( temp 2-element array of 2-component vector of float)
    138 0:?           'cull' ( temp 2-element array of 2-component vector of float)
    139 0:?   Linker Objects
    140 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    141 0:?     'pos' ( in 4-component vector of float FragCoord)
    142 0:?     'clip' ( in 4-element array of float ClipDistance)
    143 0:?     'cull' ( in 4-element array of float CullDistance)
    144 
    145 
    146 Linked fragment stage:
    147 
    148 
    149 Shader version: 500
    150 gl_FragCoord origin is upper left
    151 0:? Sequence
    152 0:4  Function Definition: @main(vf4;vf2[2];vf2[2]; ( temp 4-component vector of float)
    153 0:4    Function Parameters: 
    154 0:4      'pos' ( in 4-component vector of float)
    155 0:4      'clip' ( in 2-element array of 2-component vector of float)
    156 0:4      'cull' ( in 2-element array of 2-component vector of float)
    157 0:?     Sequence
    158 0:6      Branch: Return with expression
    159 0:6        add ( temp 4-component vector of float)
    160 0:6          add ( temp 4-component vector of float)
    161 0:6            'pos' ( in 4-component vector of float)
    162 0:6            direct index ( temp float)
    163 0:6              direct index ( temp 2-component vector of float)
    164 0:6                'clip' ( in 2-element array of 2-component vector of float)
    165 0:6                Constant:
    166 0:6                  0 (const int)
    167 0:6              Constant:
    168 0:6                0 (const int)
    169 0:6          direct index ( temp float)
    170 0:6            direct index ( temp 2-component vector of float)
    171 0:6              'cull' ( in 2-element array of 2-component vector of float)
    172 0:6              Constant:
    173 0:6                0 (const int)
    174 0:6            Constant:
    175 0:6              0 (const int)
    176 0:4  Function Definition: main( ( temp void)
    177 0:4    Function Parameters: 
    178 0:?     Sequence
    179 0:4      move second child to first child ( temp 4-component vector of float)
    180 0:?         'pos' ( temp 4-component vector of float)
    181 0:?         'pos' ( in 4-component vector of float FragCoord)
    182 0:?       Sequence
    183 0:4        move second child to first child ( temp float)
    184 0:4          direct index ( temp float)
    185 0:4            direct index ( temp 2-component vector of float)
    186 0:?               'clip' ( temp 2-element array of 2-component vector of float)
    187 0:4              Constant:
    188 0:4                0 (const int)
    189 0:4            Constant:
    190 0:4              0 (const int)
    191 0:4          direct index ( in float ClipDistance)
    192 0:?             'clip' ( in 4-element array of float ClipDistance)
    193 0:4            Constant:
    194 0:4              0 (const int)
    195 0:4        move second child to first child ( temp float)
    196 0:4          direct index ( temp float)
    197 0:4            direct index ( temp 2-component vector of float)
    198 0:?               'clip' ( temp 2-element array of 2-component vector of float)
    199 0:4              Constant:
    200 0:4                0 (const int)
    201 0:4            Constant:
    202 0:4              1 (const int)
    203 0:4          direct index ( in float ClipDistance)
    204 0:?             'clip' ( in 4-element array of float ClipDistance)
    205 0:4            Constant:
    206 0:4              1 (const int)
    207 0:4        move second child to first child ( temp float)
    208 0:4          direct index ( temp float)
    209 0:4            direct index ( temp 2-component vector of float)
    210 0:?               'clip' ( temp 2-element array of 2-component vector of float)
    211 0:4              Constant:
    212 0:4                1 (const int)
    213 0:4            Constant:
    214 0:4              0 (const int)
    215 0:4          direct index ( in float ClipDistance)
    216 0:?             'clip' ( in 4-element array of float ClipDistance)
    217 0:4            Constant:
    218 0:4              2 (const int)
    219 0:4        move second child to first child ( temp float)
    220 0:4          direct index ( temp float)
    221 0:4            direct index ( temp 2-component vector of float)
    222 0:?               'clip' ( temp 2-element array of 2-component vector of float)
    223 0:4              Constant:
    224 0:4                1 (const int)
    225 0:4            Constant:
    226 0:4              1 (const int)
    227 0:4          direct index ( in float ClipDistance)
    228 0:?             'clip' ( in 4-element array of float ClipDistance)
    229 0:4            Constant:
    230 0:4              3 (const int)
    231 0:?       Sequence
    232 0:4        move second child to first child ( temp float)
    233 0:4          direct index ( temp float)
    234 0:4            direct index ( temp 2-component vector of float)
    235 0:?               'cull' ( temp 2-element array of 2-component vector of float)
    236 0:4              Constant:
    237 0:4                0 (const int)
    238 0:4            Constant:
    239 0:4              0 (const int)
    240 0:4          direct index ( in float CullDistance)
    241 0:?             'cull' ( in 4-element array of float CullDistance)
    242 0:4            Constant:
    243 0:4              0 (const int)
    244 0:4        move second child to first child ( temp float)
    245 0:4          direct index ( temp float)
    246 0:4            direct index ( temp 2-component vector of float)
    247 0:?               'cull' ( temp 2-element array of 2-component vector of float)
    248 0:4              Constant:
    249 0:4                0 (const int)
    250 0:4            Constant:
    251 0:4              1 (const int)
    252 0:4          direct index ( in float CullDistance)
    253 0:?             'cull' ( in 4-element array of float CullDistance)
    254 0:4            Constant:
    255 0:4              1 (const int)
    256 0:4        move second child to first child ( temp float)
    257 0:4          direct index ( temp float)
    258 0:4            direct index ( temp 2-component vector of float)
    259 0:?               'cull' ( temp 2-element array of 2-component vector of float)
    260 0:4              Constant:
    261 0:4                1 (const int)
    262 0:4            Constant:
    263 0:4              0 (const int)
    264 0:4          direct index ( in float CullDistance)
    265 0:?             'cull' ( in 4-element array of float CullDistance)
    266 0:4            Constant:
    267 0:4              2 (const int)
    268 0:4        move second child to first child ( temp float)
    269 0:4          direct index ( temp float)
    270 0:4            direct index ( temp 2-component vector of float)
    271 0:?               'cull' ( temp 2-element array of 2-component vector of float)
    272 0:4              Constant:
    273 0:4                1 (const int)
    274 0:4            Constant:
    275 0:4              1 (const int)
    276 0:4          direct index ( in float CullDistance)
    277 0:?             'cull' ( in 4-element array of float CullDistance)
    278 0:4            Constant:
    279 0:4              3 (const int)
    280 0:4      move second child to first child ( temp 4-component vector of float)
    281 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    282 0:4        Function Call: @main(vf4;vf2[2];vf2[2]; ( temp 4-component vector of float)
    283 0:?           'pos' ( temp 4-component vector of float)
    284 0:?           'clip' ( temp 2-element array of 2-component vector of float)
    285 0:?           'cull' ( temp 2-element array of 2-component vector of float)
    286 0:?   Linker Objects
    287 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    288 0:?     'pos' ( in 4-component vector of float FragCoord)
    289 0:?     'clip' ( in 4-element array of float ClipDistance)
    290 0:?     'cull' ( in 4-element array of float CullDistance)
    291 
    292 // Module Version 10000
    293 // Generated by (magic number): 80007
    294 // Id's are bound by 84
    295 
    296                               Capability Shader
    297                               Capability ClipDistance
    298                               Capability CullDistance
    299                1:             ExtInstImport  "GLSL.std.450"
    300                               MemoryModel Logical GLSL450
    301                               EntryPoint Fragment 4  "main" 37 43 62 76
    302                               ExecutionMode 4 OriginUpperLeft
    303                               Source HLSL 500
    304                               Name 4  "main"
    305                               Name 18  "@main(vf4;vf2[2];vf2[2];"
    306                               Name 15  "pos"
    307                               Name 16  "clip"
    308                               Name 17  "cull"
    309                               Name 35  "pos"
    310                               Name 37  "pos"
    311                               Name 39  "clip"
    312                               Name 43  "clip"
    313                               Name 61  "cull"
    314                               Name 62  "cull"
    315                               Name 76  "@entryPointOutput"
    316                               Name 77  "param"
    317                               Name 79  "param"
    318                               Name 81  "param"
    319                               Decorate 37(pos) BuiltIn FragCoord
    320                               Decorate 43(clip) BuiltIn ClipDistance
    321                               Decorate 62(cull) BuiltIn CullDistance
    322                               Decorate 76(@entryPointOutput) Location 0
    323                2:             TypeVoid
    324                3:             TypeFunction 2
    325                6:             TypeFloat 32
    326                7:             TypeVector 6(float) 4
    327                8:             TypePointer Function 7(fvec4)
    328                9:             TypeVector 6(float) 2
    329               10:             TypeInt 32 0
    330               11:     10(int) Constant 2
    331               12:             TypeArray 9(fvec2) 11
    332               13:             TypePointer Function 12
    333               14:             TypeFunction 7(fvec4) 8(ptr) 13(ptr) 13(ptr)
    334               21:             TypeInt 32 1
    335               22:     21(int) Constant 0
    336               23:     10(int) Constant 0
    337               24:             TypePointer Function 6(float)
    338               36:             TypePointer Input 7(fvec4)
    339          37(pos):     36(ptr) Variable Input
    340               40:     10(int) Constant 4
    341               41:             TypeArray 6(float) 40
    342               42:             TypePointer Input 41
    343         43(clip):     42(ptr) Variable Input
    344               44:             TypePointer Input 6(float)
    345               48:     21(int) Constant 1
    346               51:     10(int) Constant 1
    347               53:     21(int) Constant 2
    348               57:     21(int) Constant 3
    349         62(cull):     42(ptr) Variable Input
    350               75:             TypePointer Output 7(fvec4)
    351 76(@entryPointOutput):     75(ptr) Variable Output
    352          4(main):           2 Function None 3
    353                5:             Label
    354          35(pos):      8(ptr) Variable Function
    355         39(clip):     13(ptr) Variable Function
    356         61(cull):     13(ptr) Variable Function
    357        77(param):      8(ptr) Variable Function
    358        79(param):     13(ptr) Variable Function
    359        81(param):     13(ptr) Variable Function
    360               38:    7(fvec4) Load 37(pos)
    361                               Store 35(pos) 38
    362               45:     44(ptr) AccessChain 43(clip) 22
    363               46:    6(float) Load 45
    364               47:     24(ptr) AccessChain 39(clip) 22 23
    365                               Store 47 46
    366               49:     44(ptr) AccessChain 43(clip) 48
    367               50:    6(float) Load 49
    368               52:     24(ptr) AccessChain 39(clip) 22 51
    369                               Store 52 50
    370               54:     44(ptr) AccessChain 43(clip) 53
    371               55:    6(float) Load 54
    372               56:     24(ptr) AccessChain 39(clip) 48 23
    373                               Store 56 55
    374               58:     44(ptr) AccessChain 43(clip) 57
    375               59:    6(float) Load 58
    376               60:     24(ptr) AccessChain 39(clip) 48 51
    377                               Store 60 59
    378               63:     44(ptr) AccessChain 62(cull) 22
    379               64:    6(float) Load 63
    380               65:     24(ptr) AccessChain 61(cull) 22 23
    381                               Store 65 64
    382               66:     44(ptr) AccessChain 62(cull) 48
    383               67:    6(float) Load 66
    384               68:     24(ptr) AccessChain 61(cull) 22 51
    385                               Store 68 67
    386               69:     44(ptr) AccessChain 62(cull) 53
    387               70:    6(float) Load 69
    388               71:     24(ptr) AccessChain 61(cull) 48 23
    389                               Store 71 70
    390               72:     44(ptr) AccessChain 62(cull) 57
    391               73:    6(float) Load 72
    392               74:     24(ptr) AccessChain 61(cull) 48 51
    393                               Store 74 73
    394               78:    7(fvec4) Load 35(pos)
    395                               Store 77(param) 78
    396               80:          12 Load 39(clip)
    397                               Store 79(param) 80
    398               82:          12 Load 61(cull)
    399                               Store 81(param) 82
    400               83:    7(fvec4) FunctionCall 18(@main(vf4;vf2[2];vf2[2];) 77(param) 79(param) 81(param)
    401                               Store 76(@entryPointOutput) 83
    402                               Return
    403                               FunctionEnd
    404 18(@main(vf4;vf2[2];vf2[2];):    7(fvec4) Function None 14
    405          15(pos):      8(ptr) FunctionParameter
    406         16(clip):     13(ptr) FunctionParameter
    407         17(cull):     13(ptr) FunctionParameter
    408               19:             Label
    409               20:    7(fvec4) Load 15(pos)
    410               25:     24(ptr) AccessChain 16(clip) 22 23
    411               26:    6(float) Load 25
    412               27:    7(fvec4) CompositeConstruct 26 26 26 26
    413               28:    7(fvec4) FAdd 20 27
    414               29:     24(ptr) AccessChain 17(cull) 22 23
    415               30:    6(float) Load 29
    416               31:    7(fvec4) CompositeConstruct 30 30 30 30
    417               32:    7(fvec4) FAdd 28 31
    418                               ReturnValue 32
    419                               FunctionEnd
    420