Home | History | Annotate | Download | only in baseResults
      1 hlsl.array.implicit-size.frag
      2 Shader version: 500
      3 gl_FragCoord origin is upper left
      4 0:? Sequence
      5 0:3  Sequence
      6 0:3    move second child to first child ( temp 5-element array of float)
      7 0:3      'g_array' ( global 5-element array of float)
      8 0:3      Constant:
      9 0:3        1.000000
     10 0:3        2.000000
     11 0:3        3.000000
     12 0:3        4.000000
     13 0:3        5.000000
     14 0:6  Sequence
     15 0:6    move second child to first child ( temp 7-element array of float)
     16 0:6      'g_array_unused' ( global 7-element array of float)
     17 0:6      Constant:
     18 0:6        1.000000
     19 0:6        2.000000
     20 0:6        3.000000
     21 0:6        4.000000
     22 0:6        5.000000
     23 0:6        6.000000
     24 0:6        7.000000
     25 0:12  Sequence
     26 0:12    move second child to first child ( temp 2-element array of structure{ temp int i,  temp float f})
     27 0:12      'g_mystruct' ( global 2-element array of structure{ temp int i,  temp float f})
     28 0:12      Constant:
     29 0:12        1 (const int)
     30 0:12        2.000000
     31 0:12        3 (const int)
     32 0:12        4.000000
     33 0:26  Function Definition: main(struct-PS_OUTPUT-vf41; ( temp void)
     34 0:26    Function Parameters: 
     35 0:26      'ps_output' ( out structure{ temp 4-component vector of float color})
     36 0:?     Sequence
     37 0:28      Sequence
     38 0:28        move second child to first child ( temp 3-element array of float)
     39 0:28          'l_array' ( temp 3-element array of float)
     40 0:28          Constant:
     41 0:28            1.000000
     42 0:28            2.000000
     43 0:28            3.000000
     44 0:31      move second child to first child ( temp 4-component vector of float)
     45 0:31        color: direct index for structure ( temp 4-component vector of float)
     46 0:31          'ps_output' ( out structure{ temp 4-component vector of float color})
     47 0:31          Constant:
     48 0:31            0 (const int)
     49 0:31        Construct vec4 ( temp 4-component vector of float)
     50 0:31          add ( temp float)
     51 0:31            add ( temp float)
     52 0:31              add ( temp float)
     53 0:31                add ( temp float)
     54 0:31                  direct index ( temp float)
     55 0:31                    'g_array' ( global 5-element array of float)
     56 0:31                    Constant:
     57 0:31                      0 (const int)
     58 0:31                  direct index ( temp float)
     59 0:31                    'g_array' ( global 5-element array of float)
     60 0:31                    Constant:
     61 0:31                      4 (const int)
     62 0:31                direct index ( temp float)
     63 0:31                  'l_array' ( temp 3-element array of float)
     64 0:31                  Constant:
     65 0:31                    1 (const int)
     66 0:31              f: direct index for structure ( temp float)
     67 0:31                direct index ( temp structure{ temp int i,  temp float f})
     68 0:31                  'g_mystruct' ( global 2-element array of structure{ temp int i,  temp float f})
     69 0:31                  Constant:
     70 0:31                    0 (const int)
     71 0:31                Constant:
     72 0:31                  1 (const int)
     73 0:31            indirect index ( temp float)
     74 0:31              'g_array' ( global 5-element array of float)
     75 0:31              'idx' ( temp int)
     76 0:?   Linker Objects
     77 0:?     'g_array' ( global 5-element array of float)
     78 0:?     'g_array_unused' ( global 7-element array of float)
     79 0:?     'g_mystruct' ( global 2-element array of structure{ temp int i,  temp float f})
     80 
     81 
     82 Linked fragment stage:
     83 
     84 WARNING: Linking fragment stage: Entry point not found
     85 
     86 Shader version: 500
     87 gl_FragCoord origin is upper left
     88 0:? Sequence
     89 0:3  Sequence
     90 0:3    move second child to first child ( temp 5-element array of float)
     91 0:3      'g_array' ( global 5-element array of float)
     92 0:3      Constant:
     93 0:3        1.000000
     94 0:3        2.000000
     95 0:3        3.000000
     96 0:3        4.000000
     97 0:3        5.000000
     98 0:6  Sequence
     99 0:6    move second child to first child ( temp 7-element array of float)
    100 0:6      'g_array_unused' ( global 7-element array of float)
    101 0:6      Constant:
    102 0:6        1.000000
    103 0:6        2.000000
    104 0:6        3.000000
    105 0:6        4.000000
    106 0:6        5.000000
    107 0:6        6.000000
    108 0:6        7.000000
    109 0:12  Sequence
    110 0:12    move second child to first child ( temp 2-element array of structure{ temp int i,  temp float f})
    111 0:12      'g_mystruct' ( global 2-element array of structure{ temp int i,  temp float f})
    112 0:12      Constant:
    113 0:12        1 (const int)
    114 0:12        2.000000
    115 0:12        3 (const int)
    116 0:12        4.000000
    117 0:26  Function Definition: main(struct-PS_OUTPUT-vf41; ( temp void)
    118 0:26    Function Parameters: 
    119 0:26      'ps_output' ( out structure{ temp 4-component vector of float color})
    120 0:?     Sequence
    121 0:28      Sequence
    122 0:28        move second child to first child ( temp 3-element array of float)
    123 0:28          'l_array' ( temp 3-element array of float)
    124 0:28          Constant:
    125 0:28            1.000000
    126 0:28            2.000000
    127 0:28            3.000000
    128 0:31      move second child to first child ( temp 4-component vector of float)
    129 0:31        color: direct index for structure ( temp 4-component vector of float)
    130 0:31          'ps_output' ( out structure{ temp 4-component vector of float color})
    131 0:31          Constant:
    132 0:31            0 (const int)
    133 0:31        Construct vec4 ( temp 4-component vector of float)
    134 0:31          add ( temp float)
    135 0:31            add ( temp float)
    136 0:31              add ( temp float)
    137 0:31                add ( temp float)
    138 0:31                  direct index ( temp float)
    139 0:31                    'g_array' ( global 5-element array of float)
    140 0:31                    Constant:
    141 0:31                      0 (const int)
    142 0:31                  direct index ( temp float)
    143 0:31                    'g_array' ( global 5-element array of float)
    144 0:31                    Constant:
    145 0:31                      4 (const int)
    146 0:31                direct index ( temp float)
    147 0:31                  'l_array' ( temp 3-element array of float)
    148 0:31                  Constant:
    149 0:31                    1 (const int)
    150 0:31              f: direct index for structure ( temp float)
    151 0:31                direct index ( temp structure{ temp int i,  temp float f})
    152 0:31                  'g_mystruct' ( global 2-element array of structure{ temp int i,  temp float f})
    153 0:31                  Constant:
    154 0:31                    0 (const int)
    155 0:31                Constant:
    156 0:31                  1 (const int)
    157 0:31            indirect index ( temp float)
    158 0:31              'g_array' ( global 5-element array of float)
    159 0:31              'idx' ( temp int)
    160 0:?   Linker Objects
    161 0:?     'g_array' ( global 5-element array of float)
    162 0:?     'g_array_unused' ( global 7-element array of float)
    163 0:?     'g_mystruct' ( global 2-element array of structure{ temp int i,  temp float f})
    164 
    165 // Module Version 10000
    166 // Generated by (magic number): 80007
    167 // Id's are bound by 72
    168 
    169                               Capability Shader
    170                1:             ExtInstImport  "GLSL.std.450"
    171                               MemoryModel Logical GLSL450
    172                               EntryPoint Fragment 4  "PixelShaderFunction"
    173                               ExecutionMode 4 OriginUpperLeft
    174                               Source HLSL 500
    175                               Name 4  "PixelShaderFunction"
    176                               Name 8  "PS_OUTPUT"
    177                               MemberName 8(PS_OUTPUT) 0  "color"
    178                               Name 12  "main(struct-PS_OUTPUT-vf41;"
    179                               Name 11  "ps_output"
    180                               Name 18  "g_array"
    181                               Name 28  "g_array_unused"
    182                               Name 33  "mystruct"
    183                               MemberName 33(mystruct) 0  "i"
    184                               MemberName 33(mystruct) 1  "f"
    185                               Name 37  "g_mystruct"
    186                               Name 46  "l_array"
    187                               Name 64  "idx"
    188                2:             TypeVoid
    189                3:             TypeFunction 2
    190                6:             TypeFloat 32
    191                7:             TypeVector 6(float) 4
    192     8(PS_OUTPUT):             TypeStruct 7(fvec4)
    193                9:             TypePointer Function 8(PS_OUTPUT)
    194               10:             TypeFunction 2 9(ptr)
    195               14:             TypeInt 32 0
    196               15:     14(int) Constant 5
    197               16:             TypeArray 6(float) 15
    198               17:             TypePointer Private 16
    199      18(g_array):     17(ptr) Variable Private
    200               19:    6(float) Constant 1065353216
    201               20:    6(float) Constant 1073741824
    202               21:    6(float) Constant 1077936128
    203               22:    6(float) Constant 1082130432
    204               23:    6(float) Constant 1084227584
    205               24:          16 ConstantComposite 19 20 21 22 23
    206               25:     14(int) Constant 7
    207               26:             TypeArray 6(float) 25
    208               27:             TypePointer Private 26
    209 28(g_array_unused):     27(ptr) Variable Private
    210               29:    6(float) Constant 1086324736
    211               30:    6(float) Constant 1088421888
    212               31:          26 ConstantComposite 19 20 21 22 23 29 30
    213               32:             TypeInt 32 1
    214     33(mystruct):             TypeStruct 32(int) 6(float)
    215               34:     14(int) Constant 2
    216               35:             TypeArray 33(mystruct) 34
    217               36:             TypePointer Private 35
    218   37(g_mystruct):     36(ptr) Variable Private
    219               38:     32(int) Constant 1
    220               39:33(mystruct) ConstantComposite 38 20
    221               40:     32(int) Constant 3
    222               41:33(mystruct) ConstantComposite 40 22
    223               42:          35 ConstantComposite 39 41
    224               43:     14(int) Constant 3
    225               44:             TypeArray 6(float) 43
    226               45:             TypePointer Function 44
    227               47:          44 ConstantComposite 19 20 21
    228               48:     32(int) Constant 0
    229               49:             TypePointer Private 6(float)
    230               52:     32(int) Constant 4
    231               56:             TypePointer Function 6(float)
    232               63:             TypePointer Function 32(int)
    233               70:             TypePointer Function 7(fvec4)
    234 4(PixelShaderFunction):           2 Function None 3
    235                5:             Label
    236                               Store 18(g_array) 24
    237                               Store 28(g_array_unused) 31
    238                               Store 37(g_mystruct) 42
    239                               Return
    240                               FunctionEnd
    241 12(main(struct-PS_OUTPUT-vf41;):           2 Function None 10
    242    11(ps_output):      9(ptr) FunctionParameter
    243               13:             Label
    244      46(l_array):     45(ptr) Variable Function
    245          64(idx):     63(ptr) Variable Function
    246                               Store 46(l_array) 47
    247               50:     49(ptr) AccessChain 18(g_array) 48
    248               51:    6(float) Load 50
    249               53:     49(ptr) AccessChain 18(g_array) 52
    250               54:    6(float) Load 53
    251               55:    6(float) FAdd 51 54
    252               57:     56(ptr) AccessChain 46(l_array) 38
    253               58:    6(float) Load 57
    254               59:    6(float) FAdd 55 58
    255               60:     49(ptr) AccessChain 37(g_mystruct) 48 38
    256               61:    6(float) Load 60
    257               62:    6(float) FAdd 59 61
    258               65:     32(int) Load 64(idx)
    259               66:     49(ptr) AccessChain 18(g_array) 65
    260               67:    6(float) Load 66
    261               68:    6(float) FAdd 62 67
    262               69:    7(fvec4) CompositeConstruct 68 68 68 68
    263               71:     70(ptr) AccessChain 11(ps_output) 48
    264                               Store 71 69
    265                               Return
    266                               FunctionEnd
    267