Home | History | Annotate | Download | only in baseResults
      1 hlsl.entry-in.frag
      2 Shader version: 500
      3 gl_FragCoord origin is upper left
      4 0:? Sequence
      5 0:8  Function Definition: fun(struct-InParam-vf2-vf4-vi21; ( temp float)
      6 0:8    Function Parameters: 
      7 0:8      'p' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
      8 0:?     Sequence
      9 0:9      Branch: Return with expression
     10 0:9        add ( temp float)
     11 0:9          direct index ( temp float)
     12 0:9            v: direct index for structure ( temp 2-component vector of float)
     13 0:9              'p' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     14 0:9              Constant:
     15 0:9                0 (const int)
     16 0:9            Constant:
     17 0:9              1 (const int)
     18 0:9          direct index ( temp float)
     19 0:9            fragCoord: direct index for structure ( temp 4-component vector of float)
     20 0:9              'p' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     21 0:9              Constant:
     22 0:9                1 (const int)
     23 0:9            Constant:
     24 0:9              0 (const int)
     25 0:13  Function Definition: @PixelShaderFunction(struct-InParam-vf2-vf4-vi21; ( temp 4-component vector of float)
     26 0:13    Function Parameters: 
     27 0:13      'i' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     28 0:?     Sequence
     29 0:15      move second child to first child ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     30 0:15        'local' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     31 0:15        'i' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     32 0:16      Sequence
     33 0:16        move second child to first child ( temp float)
     34 0:16          'ret1' ( temp float)
     35 0:16          Function Call: fun(struct-InParam-vf2-vf4-vi21; ( temp float)
     36 0:16            'local' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     37 0:17      Sequence
     38 0:17        move second child to first child ( temp float)
     39 0:17          'ret2' ( temp float)
     40 0:17          Function Call: fun(struct-InParam-vf2-vf4-vi21; ( temp float)
     41 0:17            'i' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     42 0:19      Branch: Return with expression
     43 0:19        vector-scale ( temp 4-component vector of float)
     44 0:19          vector-scale ( temp 4-component vector of float)
     45 0:19            fragCoord: direct index for structure ( temp 4-component vector of float)
     46 0:19              'local' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     47 0:19              Constant:
     48 0:19                1 (const int)
     49 0:19            'ret1' ( temp float)
     50 0:19          'ret2' ( temp float)
     51 0:13  Function Definition: PixelShaderFunction( ( temp void)
     52 0:13    Function Parameters: 
     53 0:?     Sequence
     54 0:13      Sequence
     55 0:13        move second child to first child ( temp 2-component vector of float)
     56 0:13          v: direct index for structure ( temp 2-component vector of float)
     57 0:?             'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     58 0:13            Constant:
     59 0:13              0 (const int)
     60 0:?           'i.v' (layout( location=0) in 2-component vector of float)
     61 0:13        move second child to first child ( temp 4-component vector of float)
     62 0:13          fragCoord: direct index for structure ( temp 4-component vector of float)
     63 0:?             'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     64 0:13            Constant:
     65 0:13              1 (const int)
     66 0:?           'i.fragCoord' ( in 4-component vector of float FragCoord)
     67 0:13        move second child to first child ( temp 2-component vector of int)
     68 0:13          i2: direct index for structure ( temp 2-component vector of int)
     69 0:?             'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     70 0:13            Constant:
     71 0:13              2 (const int)
     72 0:?           'i.i2' (layout( location=1) flat in 2-component vector of int)
     73 0:13      move second child to first child ( temp 4-component vector of float)
     74 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     75 0:13        Function Call: @PixelShaderFunction(struct-InParam-vf2-vf4-vi21; ( temp 4-component vector of float)
     76 0:?           'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     77 0:?   Linker Objects
     78 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     79 0:?     'i.fragCoord' ( in 4-component vector of float FragCoord)
     80 0:?     'i.v' (layout( location=0) in 2-component vector of float)
     81 0:?     'i.i2' (layout( location=1) flat in 2-component vector of int)
     82 
     83 
     84 Linked fragment stage:
     85 
     86 
     87 Shader version: 500
     88 gl_FragCoord origin is upper left
     89 0:? Sequence
     90 0:8  Function Definition: fun(struct-InParam-vf2-vf4-vi21; ( temp float)
     91 0:8    Function Parameters: 
     92 0:8      'p' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     93 0:?     Sequence
     94 0:9      Branch: Return with expression
     95 0:9        add ( temp float)
     96 0:9          direct index ( temp float)
     97 0:9            v: direct index for structure ( temp 2-component vector of float)
     98 0:9              'p' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
     99 0:9              Constant:
    100 0:9                0 (const int)
    101 0:9            Constant:
    102 0:9              1 (const int)
    103 0:9          direct index ( temp float)
    104 0:9            fragCoord: direct index for structure ( temp 4-component vector of float)
    105 0:9              'p' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    106 0:9              Constant:
    107 0:9                1 (const int)
    108 0:9            Constant:
    109 0:9              0 (const int)
    110 0:13  Function Definition: @PixelShaderFunction(struct-InParam-vf2-vf4-vi21; ( temp 4-component vector of float)
    111 0:13    Function Parameters: 
    112 0:13      'i' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    113 0:?     Sequence
    114 0:15      move second child to first child ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    115 0:15        'local' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    116 0:15        'i' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    117 0:16      Sequence
    118 0:16        move second child to first child ( temp float)
    119 0:16          'ret1' ( temp float)
    120 0:16          Function Call: fun(struct-InParam-vf2-vf4-vi21; ( temp float)
    121 0:16            'local' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    122 0:17      Sequence
    123 0:17        move second child to first child ( temp float)
    124 0:17          'ret2' ( temp float)
    125 0:17          Function Call: fun(struct-InParam-vf2-vf4-vi21; ( temp float)
    126 0:17            'i' ( in structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    127 0:19      Branch: Return with expression
    128 0:19        vector-scale ( temp 4-component vector of float)
    129 0:19          vector-scale ( temp 4-component vector of float)
    130 0:19            fragCoord: direct index for structure ( temp 4-component vector of float)
    131 0:19              'local' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    132 0:19              Constant:
    133 0:19                1 (const int)
    134 0:19            'ret1' ( temp float)
    135 0:19          'ret2' ( temp float)
    136 0:13  Function Definition: PixelShaderFunction( ( temp void)
    137 0:13    Function Parameters: 
    138 0:?     Sequence
    139 0:13      Sequence
    140 0:13        move second child to first child ( temp 2-component vector of float)
    141 0:13          v: direct index for structure ( temp 2-component vector of float)
    142 0:?             'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    143 0:13            Constant:
    144 0:13              0 (const int)
    145 0:?           'i.v' (layout( location=0) in 2-component vector of float)
    146 0:13        move second child to first child ( temp 4-component vector of float)
    147 0:13          fragCoord: direct index for structure ( temp 4-component vector of float)
    148 0:?             'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    149 0:13            Constant:
    150 0:13              1 (const int)
    151 0:?           'i.fragCoord' ( in 4-component vector of float FragCoord)
    152 0:13        move second child to first child ( temp 2-component vector of int)
    153 0:13          i2: direct index for structure ( temp 2-component vector of int)
    154 0:?             'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    155 0:13            Constant:
    156 0:13              2 (const int)
    157 0:?           'i.i2' (layout( location=1) flat in 2-component vector of int)
    158 0:13      move second child to first child ( temp 4-component vector of float)
    159 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    160 0:13        Function Call: @PixelShaderFunction(struct-InParam-vf2-vf4-vi21; ( temp 4-component vector of float)
    161 0:?           'i' ( temp structure{ temp 2-component vector of float v,  temp 4-component vector of float fragCoord,  temp 2-component vector of int i2})
    162 0:?   Linker Objects
    163 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    164 0:?     'i.fragCoord' ( in 4-component vector of float FragCoord)
    165 0:?     'i.v' (layout( location=0) in 2-component vector of float)
    166 0:?     'i.i2' (layout( location=1) flat in 2-component vector of int)
    167 
    168 // Module Version 10000
    169 // Generated by (magic number): 80007
    170 // Id's are bound by 74
    171 
    172                               Capability Shader
    173                1:             ExtInstImport  "GLSL.std.450"
    174                               MemoryModel Logical GLSL450
    175                               EntryPoint Fragment 4  "PixelShaderFunction" 55 60 65 70
    176                               ExecutionMode 4 OriginUpperLeft
    177                               Source HLSL 500
    178                               Name 4  "PixelShaderFunction"
    179                               Name 11  "InParam"
    180                               MemberName 11(InParam) 0  "v"
    181                               MemberName 11(InParam) 1  "fragCoord"
    182                               MemberName 11(InParam) 2  "i2"
    183                               Name 15  "fun(struct-InParam-vf2-vf4-vi21;"
    184                               Name 14  "p"
    185                               Name 19  "@PixelShaderFunction(struct-InParam-vf2-vf4-vi21;"
    186                               Name 18  "i"
    187                               Name 34  "local"
    188                               Name 36  "ret1"
    189                               Name 37  "param"
    190                               Name 40  "ret2"
    191                               Name 41  "param"
    192                               Name 53  "i"
    193                               Name 55  "i.v"
    194                               Name 60  "i.fragCoord"
    195                               Name 65  "i.i2"
    196                               Name 70  "@entryPointOutput"
    197                               Name 71  "param"
    198                               Decorate 55(i.v) Location 0
    199                               Decorate 60(i.fragCoord) BuiltIn FragCoord
    200                               Decorate 65(i.i2) Flat
    201                               Decorate 65(i.i2) Location 1
    202                               Decorate 70(@entryPointOutput) Location 0
    203                2:             TypeVoid
    204                3:             TypeFunction 2
    205                6:             TypeFloat 32
    206                7:             TypeVector 6(float) 2
    207                8:             TypeVector 6(float) 4
    208                9:             TypeInt 32 1
    209               10:             TypeVector 9(int) 2
    210      11(InParam):             TypeStruct 7(fvec2) 8(fvec4) 10(ivec2)
    211               12:             TypePointer Function 11(InParam)
    212               13:             TypeFunction 6(float) 12(ptr)
    213               17:             TypeFunction 8(fvec4) 12(ptr)
    214               21:      9(int) Constant 0
    215               22:             TypeInt 32 0
    216               23:     22(int) Constant 1
    217               24:             TypePointer Function 6(float)
    218               27:      9(int) Constant 1
    219               28:     22(int) Constant 0
    220               44:             TypePointer Function 8(fvec4)
    221               54:             TypePointer Input 7(fvec2)
    222          55(i.v):     54(ptr) Variable Input
    223               57:             TypePointer Function 7(fvec2)
    224               59:             TypePointer Input 8(fvec4)
    225  60(i.fragCoord):     59(ptr) Variable Input
    226               63:      9(int) Constant 2
    227               64:             TypePointer Input 10(ivec2)
    228         65(i.i2):     64(ptr) Variable Input
    229               67:             TypePointer Function 10(ivec2)
    230               69:             TypePointer Output 8(fvec4)
    231 70(@entryPointOutput):     69(ptr) Variable Output
    232 4(PixelShaderFunction):           2 Function None 3
    233                5:             Label
    234            53(i):     12(ptr) Variable Function
    235        71(param):     12(ptr) Variable Function
    236               56:    7(fvec2) Load 55(i.v)
    237               58:     57(ptr) AccessChain 53(i) 21
    238                               Store 58 56
    239               61:    8(fvec4) Load 60(i.fragCoord)
    240               62:     44(ptr) AccessChain 53(i) 27
    241                               Store 62 61
    242               66:   10(ivec2) Load 65(i.i2)
    243               68:     67(ptr) AccessChain 53(i) 63
    244                               Store 68 66
    245               72: 11(InParam) Load 53(i)
    246                               Store 71(param) 72
    247               73:    8(fvec4) FunctionCall 19(@PixelShaderFunction(struct-InParam-vf2-vf4-vi21;) 71(param)
    248                               Store 70(@entryPointOutput) 73
    249                               Return
    250                               FunctionEnd
    251 15(fun(struct-InParam-vf2-vf4-vi21;):    6(float) Function None 13
    252            14(p):     12(ptr) FunctionParameter
    253               16:             Label
    254               25:     24(ptr) AccessChain 14(p) 21 23
    255               26:    6(float) Load 25
    256               29:     24(ptr) AccessChain 14(p) 27 28
    257               30:    6(float) Load 29
    258               31:    6(float) FAdd 26 30
    259                               ReturnValue 31
    260                               FunctionEnd
    261 19(@PixelShaderFunction(struct-InParam-vf2-vf4-vi21;):    8(fvec4) Function None 17
    262            18(i):     12(ptr) FunctionParameter
    263               20:             Label
    264        34(local):     12(ptr) Variable Function
    265         36(ret1):     24(ptr) Variable Function
    266        37(param):     12(ptr) Variable Function
    267         40(ret2):     24(ptr) Variable Function
    268        41(param):     12(ptr) Variable Function
    269               35: 11(InParam) Load 18(i)
    270                               Store 34(local) 35
    271               38: 11(InParam) Load 34(local)
    272                               Store 37(param) 38
    273               39:    6(float) FunctionCall 15(fun(struct-InParam-vf2-vf4-vi21;) 37(param)
    274                               Store 36(ret1) 39
    275               42: 11(InParam) Load 18(i)
    276                               Store 41(param) 42
    277               43:    6(float) FunctionCall 15(fun(struct-InParam-vf2-vf4-vi21;) 41(param)
    278                               Store 40(ret2) 43
    279               45:     44(ptr) AccessChain 34(local) 27
    280               46:    8(fvec4) Load 45
    281               47:    6(float) Load 36(ret1)
    282               48:    8(fvec4) VectorTimesScalar 46 47
    283               49:    6(float) Load 40(ret2)
    284               50:    8(fvec4) VectorTimesScalar 48 49
    285                               ReturnValue 50
    286                               FunctionEnd
    287