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 15 Binding 0 126 Decorate 41(@entryPointOutput) Location 0 127 2: TypeVoid 128 3: TypeFunction 2 129 6: TypeFloat 32 130 7: TypeVector 6(float) 4 131 8: TypeFunction 7(fvec4) 132 11: TypePointer Private 7(fvec4) 133 12(bar): 11(ptr) Variable Private 134 13(CB): TypeStruct 7(fvec4) 135 14: TypePointer Uniform 13(CB) 136 15: 14(ptr) Variable Uniform 137 16: TypeInt 32 1 138 17: 16(int) Constant 0 139 18: TypePointer Uniform 7(fvec4) 140 21: TypeVector 6(float) 2 141 22: TypeInt 32 0 142 23: 22(int) Constant 2 143 24: TypeArray 21(fvec2) 23 144 25: TypePointer Private 24 145 26(a1): 25(ptr) Variable Private 146 27: 6(float) Constant 1065353216 147 28: 6(float) Constant 1073741824 148 29: 21(fvec2) ConstantComposite 27 28 149 30: 22(int) Constant 0 150 31: TypePointer Uniform 6(float) 151 34: 6(float) Constant 1082130432 152 40: TypePointer Output 7(fvec4) 15341(@entryPointOutput): 40(ptr) Variable Output 154 43: 6(float) Constant 1084227584 155 44: 6(float) Constant 1086324736 156 45: 21(fvec2) ConstantComposite 43 44 157 46: 6(float) Constant 1088421888 158 47: 6(float) Constant 1090519040 159 48: 21(fvec2) ConstantComposite 46 47 160 49: 24 ConstantComposite 45 48 161 4(main): 2 Function None 3 162 5: Label 163 19: 18(ptr) AccessChain 15 17 164 20: 7(fvec4) Load 19 165 Store 12(bar) 20 166 32: 31(ptr) AccessChain 15 17 30 167 33: 6(float) Load 32 168 35: 21(fvec2) CompositeConstruct 33 34 169 36: 24 CompositeConstruct 29 35 170 Store 26(a1) 36 171 42: 7(fvec4) FunctionCall 9(@main() 172 Store 41(@entryPointOutput) 42 173 Return 174 FunctionEnd 175 9(@main(): 7(fvec4) Function None 8 176 10: Label 177 37: 7(fvec4) Load 12(bar) 178 ReturnValue 37 179 FunctionEnd 180