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