Home | History | Annotate | Download | only in baseResults
      1 hlsl.clipdistance-1.frag
      2 Shader version: 500
      3 gl_FragCoord origin is upper left
      4 0:? Sequence
      5 0:4  Function Definition: @main(vf4;f1;f1; ( 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 float)
      9 0:4      'cull' ( in 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            'clip' ( in float)
     16 0:5          'cull' ( in float)
     17 0:4  Function Definition: main( ( temp void)
     18 0:4    Function Parameters: 
     19 0:?     Sequence
     20 0:4      move second child to first child ( temp 4-component vector of float)
     21 0:?         'pos' ( temp 4-component vector of float)
     22 0:?         'pos' ( in 4-component vector of float FragCoord)
     23 0:?       Sequence
     24 0:4        move second child to first child ( temp float)
     25 0:?           'clip' ( temp float)
     26 0:4          direct index ( in float ClipDistance)
     27 0:?             'clip' ( in 1-element array of float ClipDistance)
     28 0:4            Constant:
     29 0:4              0 (const int)
     30 0:?       Sequence
     31 0:4        move second child to first child ( temp float)
     32 0:?           'cull' ( temp float)
     33 0:4          direct index ( in float CullDistance)
     34 0:?             'cull' ( in 1-element array of float CullDistance)
     35 0:4            Constant:
     36 0:4              0 (const int)
     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;f1; ( temp 4-component vector of float)
     40 0:?           'pos' ( temp 4-component vector of float)
     41 0:?           'clip' ( temp float)
     42 0:?           'cull' ( temp 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 1-element array of float ClipDistance)
     47 0:?     'cull' ( in 1-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;f1; ( 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 float)
     60 0:4      'cull' ( in 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            'clip' ( in float)
     67 0:5          'cull' ( in float)
     68 0:4  Function Definition: main( ( temp void)
     69 0:4    Function Parameters: 
     70 0:?     Sequence
     71 0:4      move second child to first child ( temp 4-component vector of float)
     72 0:?         'pos' ( temp 4-component vector of float)
     73 0:?         'pos' ( in 4-component vector of float FragCoord)
     74 0:?       Sequence
     75 0:4        move second child to first child ( temp float)
     76 0:?           'clip' ( temp float)
     77 0:4          direct index ( in float ClipDistance)
     78 0:?             'clip' ( in 1-element array of float ClipDistance)
     79 0:4            Constant:
     80 0:4              0 (const int)
     81 0:?       Sequence
     82 0:4        move second child to first child ( temp float)
     83 0:?           'cull' ( temp float)
     84 0:4          direct index ( in float CullDistance)
     85 0:?             'cull' ( in 1-element array of float CullDistance)
     86 0:4            Constant:
     87 0:4              0 (const int)
     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;f1; ( temp 4-component vector of float)
     91 0:?           'pos' ( temp 4-component vector of float)
     92 0:?           'clip' ( temp float)
     93 0:?           'cull' ( temp 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 1-element array of float ClipDistance)
     98 0:?     'cull' ( in 1-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" 27 34 41 45
    110                               ExecutionMode 4 OriginUpperLeft
    111                               Source HLSL 500
    112                               Name 4  "main"
    113                               Name 14  "@main(vf4;f1;f1;"
    114                               Name 11  "pos"
    115                               Name 12  "clip"
    116                               Name 13  "cull"
    117                               Name 25  "pos"
    118                               Name 27  "pos"
    119                               Name 29  "clip"
    120                               Name 34  "clip"
    121                               Name 40  "cull"
    122                               Name 41  "cull"
    123                               Name 45  "@entryPointOutput"
    124                               Name 46  "param"
    125                               Name 48  "param"
    126                               Name 50  "param"
    127                               Decorate 27(pos) BuiltIn FragCoord
    128                               Decorate 34(clip) BuiltIn ClipDistance
    129                               Decorate 41(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:             TypePointer Function 6(float)
    137               10:             TypeFunction 7(fvec4) 8(ptr) 9(ptr) 9(ptr)
    138               26:             TypePointer Input 7(fvec4)
    139          27(pos):     26(ptr) Variable Input
    140               30:             TypeInt 32 0
    141               31:     30(int) Constant 1
    142               32:             TypeArray 6(float) 31
    143               33:             TypePointer Input 32
    144         34(clip):     33(ptr) Variable Input
    145               35:             TypeInt 32 1
    146               36:     35(int) Constant 0
    147               37:             TypePointer Input 6(float)
    148         41(cull):     33(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          25(pos):      8(ptr) Variable Function
    154         29(clip):      9(ptr) Variable Function
    155         40(cull):      9(ptr) Variable Function
    156        46(param):      8(ptr) Variable Function
    157        48(param):      9(ptr) Variable Function
    158        50(param):      9(ptr) Variable Function
    159               28:    7(fvec4) Load 27(pos)
    160                               Store 25(pos) 28
    161               38:     37(ptr) AccessChain 34(clip) 36
    162               39:    6(float) Load 38
    163                               Store 29(clip) 39
    164               42:     37(ptr) AccessChain 41(cull) 36
    165               43:    6(float) Load 42
    166                               Store 40(cull) 43
    167               47:    7(fvec4) Load 25(pos)
    168                               Store 46(param) 47
    169               49:    6(float) Load 29(clip)
    170                               Store 48(param) 49
    171               51:    6(float) Load 40(cull)
    172                               Store 50(param) 51
    173               52:    7(fvec4) FunctionCall 14(@main(vf4;f1;f1;) 46(param) 48(param) 50(param)
    174                               Store 45(@entryPointOutput) 52
    175                               Return
    176                               FunctionEnd
    177 14(@main(vf4;f1;f1;):    7(fvec4) Function None 10
    178          11(pos):      8(ptr) FunctionParameter
    179         12(clip):      9(ptr) FunctionParameter
    180         13(cull):      9(ptr) FunctionParameter
    181               15:             Label
    182               16:    7(fvec4) Load 11(pos)
    183               17:    6(float) Load 12(clip)
    184               18:    7(fvec4) CompositeConstruct 17 17 17 17
    185               19:    7(fvec4) FAdd 16 18
    186               20:    6(float) Load 13(cull)
    187               21:    7(fvec4) CompositeConstruct 20 20 20 20
    188               22:    7(fvec4) FAdd 19 21
    189                               ReturnValue 22
    190                               FunctionEnd
    191