Home | History | Annotate | Download | only in baseResults
      1 hlsl.clipdistance-3.frag
      2 Shader version: 500
      3 gl_FragCoord origin is upper left
      4 0:? Sequence
      5 0:4  Function Definition: @main(vf4;f1[2];f1[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 float)
      9 0:4      'cull' ( in 2-element array of float)
     10 0:?     Sequence
     11 0:5      Branch: Return with expression
     12 0:5        add ( temp 4-component vector of float)
     13 0:5          add ( temp 4-component vector of float)
     14 0:5            'pos' ( in 4-component vector of float)
     15 0:5            direct index ( temp float)
     16 0:5              'clip' ( in 2-element array of float)
     17 0:5              Constant:
     18 0:5                0 (const int)
     19 0:5          direct index ( temp float)
     20 0:5            'cull' ( in 2-element array of float)
     21 0:5            Constant:
     22 0:5              0 (const int)
     23 0:4  Function Definition: main( ( temp void)
     24 0:4    Function Parameters: 
     25 0:?     Sequence
     26 0:4      move second child to first child ( temp 4-component vector of float)
     27 0:?         'pos' ( temp 4-component vector of float)
     28 0:?         'pos' ( in 4-component vector of float FragCoord)
     29 0:?       Sequence
     30 0:4        move second child to first child ( temp 2-element array of float)
     31 0:?           'clip' ( temp 2-element array of float)
     32 0:?           'clip' ( in 2-element array of float ClipDistance)
     33 0:?       Sequence
     34 0:4        move second child to first child ( temp 2-element array of float)
     35 0:?           'cull' ( temp 2-element array of float)
     36 0:?           'cull' ( in 2-element array of float CullDistance)
     37 0:4      move second child to first child ( temp 4-component vector of float)
     38 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     39 0:4        Function Call: @main(vf4;f1[2];f1[2]; ( temp 4-component vector of float)
     40 0:?           'pos' ( temp 4-component vector of float)
     41 0:?           'clip' ( temp 2-element array of float)
     42 0:?           'cull' ( temp 2-element array of float)
     43 0:?   Linker Objects
     44 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     45 0:?     'pos' ( in 4-component vector of float FragCoord)
     46 0:?     'clip' ( in 2-element array of float ClipDistance)
     47 0:?     'cull' ( in 2-element array of float CullDistance)
     48 
     49 
     50 Linked fragment stage:
     51 
     52 
     53 Shader version: 500
     54 gl_FragCoord origin is upper left
     55 0:? Sequence
     56 0:4  Function Definition: @main(vf4;f1[2];f1[2]; ( temp 4-component vector of float)
     57 0:4    Function Parameters: 
     58 0:4      'pos' ( in 4-component vector of float)
     59 0:4      'clip' ( in 2-element array of float)
     60 0:4      'cull' ( in 2-element array of float)
     61 0:?     Sequence
     62 0:5      Branch: Return with expression
     63 0:5        add ( temp 4-component vector of float)
     64 0:5          add ( temp 4-component vector of float)
     65 0:5            'pos' ( in 4-component vector of float)
     66 0:5            direct index ( temp float)
     67 0:5              'clip' ( in 2-element array of float)
     68 0:5              Constant:
     69 0:5                0 (const int)
     70 0:5          direct index ( temp float)
     71 0:5            'cull' ( in 2-element array of float)
     72 0:5            Constant:
     73 0:5              0 (const int)
     74 0:4  Function Definition: main( ( temp void)
     75 0:4    Function Parameters: 
     76 0:?     Sequence
     77 0:4      move second child to first child ( temp 4-component vector of float)
     78 0:?         'pos' ( temp 4-component vector of float)
     79 0:?         'pos' ( in 4-component vector of float FragCoord)
     80 0:?       Sequence
     81 0:4        move second child to first child ( temp 2-element array of float)
     82 0:?           'clip' ( temp 2-element array of float)
     83 0:?           'clip' ( in 2-element array of float ClipDistance)
     84 0:?       Sequence
     85 0:4        move second child to first child ( temp 2-element array of float)
     86 0:?           'cull' ( temp 2-element array of float)
     87 0:?           'cull' ( in 2-element array of float CullDistance)
     88 0:4      move second child to first child ( temp 4-component vector of float)
     89 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     90 0:4        Function Call: @main(vf4;f1[2];f1[2]; ( temp 4-component vector of float)
     91 0:?           'pos' ( temp 4-component vector of float)
     92 0:?           'clip' ( temp 2-element array of float)
     93 0:?           'cull' ( temp 2-element array of float)
     94 0:?   Linker Objects
     95 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     96 0:?     'pos' ( in 4-component vector of float FragCoord)
     97 0:?     'clip' ( in 2-element array of float ClipDistance)
     98 0:?     'cull' ( in 2-element array of float CullDistance)
     99 
    100 // Module Version 10000
    101 // Generated by (magic number): 80007
    102 // Id's are bound by 53
    103 
    104                               Capability Shader
    105                               Capability ClipDistance
    106                               Capability CullDistance
    107                1:             ExtInstImport  "GLSL.std.450"
    108                               MemoryModel Logical GLSL450
    109                               EntryPoint Fragment 4  "main" 35 39 42 45
    110                               ExecutionMode 4 OriginUpperLeft
    111                               Source HLSL 500
    112                               Name 4  "main"
    113                               Name 17  "@main(vf4;f1[2];f1[2];"
    114                               Name 14  "pos"
    115                               Name 15  "clip"
    116                               Name 16  "cull"
    117                               Name 33  "pos"
    118                               Name 35  "pos"
    119                               Name 37  "clip"
    120                               Name 39  "clip"
    121                               Name 41  "cull"
    122                               Name 42  "cull"
    123                               Name 45  "@entryPointOutput"
    124                               Name 46  "param"
    125                               Name 48  "param"
    126                               Name 50  "param"
    127                               Decorate 35(pos) BuiltIn FragCoord
    128                               Decorate 39(clip) BuiltIn ClipDistance
    129                               Decorate 42(cull) BuiltIn CullDistance
    130                               Decorate 45(@entryPointOutput) Location 0
    131                2:             TypeVoid
    132                3:             TypeFunction 2
    133                6:             TypeFloat 32
    134                7:             TypeVector 6(float) 4
    135                8:             TypePointer Function 7(fvec4)
    136                9:             TypeInt 32 0
    137               10:      9(int) Constant 2
    138               11:             TypeArray 6(float) 10
    139               12:             TypePointer Function 11
    140               13:             TypeFunction 7(fvec4) 8(ptr) 12(ptr) 12(ptr)
    141               20:             TypeInt 32 1
    142               21:     20(int) Constant 0
    143               22:             TypePointer Function 6(float)
    144               34:             TypePointer Input 7(fvec4)
    145          35(pos):     34(ptr) Variable Input
    146               38:             TypePointer Input 11
    147         39(clip):     38(ptr) Variable Input
    148         42(cull):     38(ptr) Variable Input
    149               44:             TypePointer Output 7(fvec4)
    150 45(@entryPointOutput):     44(ptr) Variable Output
    151          4(main):           2 Function None 3
    152                5:             Label
    153          33(pos):      8(ptr) Variable Function
    154         37(clip):     12(ptr) Variable Function
    155         41(cull):     12(ptr) Variable Function
    156        46(param):      8(ptr) Variable Function
    157        48(param):     12(ptr) Variable Function
    158        50(param):     12(ptr) Variable Function
    159               36:    7(fvec4) Load 35(pos)
    160                               Store 33(pos) 36
    161               40:          11 Load 39(clip)
    162                               Store 37(clip) 40
    163               43:          11 Load 42(cull)
    164                               Store 41(cull) 43
    165               47:    7(fvec4) Load 33(pos)
    166                               Store 46(param) 47
    167               49:          11 Load 37(clip)
    168                               Store 48(param) 49
    169               51:          11 Load 41(cull)
    170                               Store 50(param) 51
    171               52:    7(fvec4) FunctionCall 17(@main(vf4;f1[2];f1[2];) 46(param) 48(param) 50(param)
    172                               Store 45(@entryPointOutput) 52
    173                               Return
    174                               FunctionEnd
    175 17(@main(vf4;f1[2];f1[2];):    7(fvec4) Function None 13
    176          14(pos):      8(ptr) FunctionParameter
    177         15(clip):     12(ptr) FunctionParameter
    178         16(cull):     12(ptr) FunctionParameter
    179               18:             Label
    180               19:    7(fvec4) Load 14(pos)
    181               23:     22(ptr) AccessChain 15(clip) 21
    182               24:    6(float) Load 23
    183               25:    7(fvec4) CompositeConstruct 24 24 24 24
    184               26:    7(fvec4) FAdd 19 25
    185               27:     22(ptr) AccessChain 16(cull) 21
    186               28:    6(float) Load 27
    187               29:    7(fvec4) CompositeConstruct 28 28 28 28
    188               30:    7(fvec4) FAdd 26 29
    189                               ReturnValue 30
    190                               FunctionEnd
    191