1hlsl.global-const-init.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:6  Sequence
60:6    move second child to first child ( temp 4-component vector of float)
70:6      'bar' ( global 4-component vector of float)
80:6      foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
90:6        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
100:6        Constant:
110:6          0 (const uint)
120:8  Sequence
130:8    move second child to first child ( temp 2-element array of 2-component vector of float)
140:8      'a1' ( global 2-element array of 2-component vector of float)
150:8      Construct vec2 ( temp 2-element array of 2-component vector of float)
160:8        Constant:
170:8          1.000000
180:8          2.000000
190:8        Construct vec2 ( temp 2-component vector of float)
200:8          direct index ( temp float)
210:8            foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
220:8              'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
230:8              Constant:
240:8                0 (const uint)
250:8            Constant:
260:8              0 (const int)
270:8          Constant:
280:8            4.000000
290:12  Function Definition: @main( ( temp 4-component vector of float)
300:12    Function Parameters:
310:?     Sequence
320:13      Branch: Return with expression
330:13        'bar' ( global 4-component vector of float)
340:12  Function Definition: main( ( temp void)
350:12    Function Parameters:
360:?     Sequence
370:12      move second child to first child ( temp 4-component vector of float)
380:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
390:12        Function Call: @main( ( temp 4-component vector of float)
400:?   Linker Objects
410:?     'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
420:?     'bar' ( global 4-component vector of float)
430:?     'a1' ( global 2-element array of 2-component vector of float)
440:?     'a2' ( const 2-element array of 2-component vector of float)
450:?       5.000000
460:?       6.000000
470:?       7.000000
480:?       8.000000
490:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
50
51
52Linked fragment stage:
53
54
55Shader version: 500
56gl_FragCoord origin is upper left
570:? Sequence
580:6  Sequence
590:6    move second child to first child ( temp 4-component vector of float)
600:6      'bar' ( global 4-component vector of float)
610:6      foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
620:6        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
630:6        Constant:
640:6          0 (const uint)
650:8  Sequence
660:8    move second child to first child ( temp 2-element array of 2-component vector of float)
670:8      'a1' ( global 2-element array of 2-component vector of float)
680:8      Construct vec2 ( temp 2-element array of 2-component vector of float)
690:8        Constant:
700:8          1.000000
710:8          2.000000
720:8        Construct vec2 ( temp 2-component vector of float)
730:8          direct index ( temp float)
740:8            foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
750:8              'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
760:8              Constant:
770:8                0 (const uint)
780:8            Constant:
790:8              0 (const int)
800:8          Constant:
810:8            4.000000
820:12  Function Definition: @main( ( temp 4-component vector of float)
830:12    Function Parameters:
840:?     Sequence
850:13      Branch: Return with expression
860:13        'bar' ( global 4-component vector of float)
870:12  Function Definition: main( ( temp void)
880:12    Function Parameters:
890:?     Sequence
900:12      move second child to first child ( temp 4-component vector of float)
910:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
920:12        Function Call: @main( ( temp 4-component vector of float)
930:?   Linker Objects
940:?     'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
950:?     'bar' ( global 4-component vector of float)
960:?     'a1' ( global 2-element array of 2-component vector of float)
970:?     'a2' ( const 2-element array of 2-component vector of float)
980:?       5.000000
990:?       6.000000
1000:?       7.000000
1010:?       8.000000
1020:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
103
104// Module Version 10000
105// Generated by (magic number): 80007
106// Id's are bound by 50
107
108                              Capability Shader
109               1:             ExtInstImport  "GLSL.std.450"
110                              MemoryModel Logical GLSL450
111                              EntryPoint Fragment 4  "main" 41
112                              ExecutionMode 4 OriginUpperLeft
113                              Source HLSL 500
114                              Name 4  "main"
115                              Name 9  "@main("
116                              Name 12  "bar"
117                              Name 13  "CB"
118                              MemberName 13(CB) 0  "foo"
119                              Name 15  ""
120                              Name 26  "a1"
121                              Name 41  "@entryPointOutput"
122                              MemberDecorate 13(CB) 0 Offset 0
123                              Decorate 13(CB) Block
124                              Decorate 15 DescriptorSet 0
125                              Decorate 41(@entryPointOutput) Location 0
126               2:             TypeVoid
127               3:             TypeFunction 2
128               6:             TypeFloat 32
129               7:             TypeVector 6(float) 4
130               8:             TypeFunction 7(fvec4)
131              11:             TypePointer Private 7(fvec4)
132         12(bar):     11(ptr) Variable Private
133          13(CB):             TypeStruct 7(fvec4)
134              14:             TypePointer Uniform 13(CB)
135              15:     14(ptr) Variable Uniform
136              16:             TypeInt 32 1
137              17:     16(int) Constant 0
138              18:             TypePointer Uniform 7(fvec4)
139              21:             TypeVector 6(float) 2
140              22:             TypeInt 32 0
141              23:     22(int) Constant 2
142              24:             TypeArray 21(fvec2) 23
143              25:             TypePointer Private 24
144          26(a1):     25(ptr) Variable Private
145              27:    6(float) Constant 1065353216
146              28:    6(float) Constant 1073741824
147              29:   21(fvec2) ConstantComposite 27 28
148              30:     22(int) Constant 0
149              31:             TypePointer Uniform 6(float)
150              34:    6(float) Constant 1082130432
151              40:             TypePointer Output 7(fvec4)
15241(@entryPointOutput):     40(ptr) Variable Output
153              43:    6(float) Constant 1084227584
154              44:    6(float) Constant 1086324736
155              45:   21(fvec2) ConstantComposite 43 44
156              46:    6(float) Constant 1088421888
157              47:    6(float) Constant 1090519040
158              48:   21(fvec2) ConstantComposite 46 47
159              49:          24 ConstantComposite 45 48
160         4(main):           2 Function None 3
161               5:             Label
162              19:     18(ptr) AccessChain 15 17
163              20:    7(fvec4) Load 19
164                              Store 12(bar) 20
165              32:     31(ptr) AccessChain 15 17 30
166              33:    6(float) Load 32
167              35:   21(fvec2) CompositeConstruct 33 34
168              36:          24 CompositeConstruct 29 35
169                              Store 26(a1) 36
170              42:    7(fvec4) FunctionCall 9(@main()
171                              Store 41(@entryPointOutput) 42
172                              Return
173                              FunctionEnd
174       9(@main():    7(fvec4) Function None 8
175              10:             Label
176              37:    7(fvec4) Load 12(bar)
177                              ReturnValue 37
178                              FunctionEnd
179