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