1 hlsl.global-const-init.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:6 Sequence 6 0:6 move second child to first child ( temp 4-component vector of float) 7 0:6 'bar' ( global 4-component vector of float) 8 0:6 foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float) 9 0:6 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo}) 10 0:6 Constant: 11 0:6 0 (const uint) 12 0:8 Sequence 13 0:8 move second child to first child ( temp 2-element array of 2-component vector of float) 14 0:8 'a1' ( global 2-element array of 2-component vector of float) 15 0:8 Construct vec2 ( temp 2-element array of 2-component vector of float) 16 0:8 Constant: 17 0:8 1.000000 18 0:8 2.000000 19 0:8 Construct vec2 ( temp 2-component vector of float) 20 0:8 direct index ( temp float) 21 0:8 foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float) 22 0:8 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo}) 23 0:8 Constant: 24 0:8 0 (const uint) 25 0:8 Constant: 26 0:8 0 (const int) 27 0:8 Constant: 28 0:8 4.000000 29 0:12 Function Definition: @main( ( temp 4-component vector of float) 30 0:12 Function Parameters: 31 0:? Sequence 32 0:13 Branch: Return with expression 33 0:13 'bar' ( global 4-component vector of float) 34 0:12 Function Definition: main( ( temp void) 35 0:12 Function Parameters: 36 0:? Sequence 37 0:12 move second child to first child ( temp 4-component vector of float) 38 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 39 0:12 Function Call: @main( ( temp 4-component vector of float) 40 0:? Linker Objects 41 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo}) 42 0:? 'bar' ( global 4-component vector of float) 43 0:? 'a1' ( global 2-element array of 2-component vector of float) 44 0:? 'a2' ( const 2-element array of 2-component vector of float) 45 0:? 5.000000 46 0:? 6.000000 47 0:? 7.000000 48 0:? 8.000000 49 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 50 51 52 Linked fragment stage: 53 54 55 Shader version: 500 56 gl_FragCoord origin is upper left 57 0:? Sequence 58 0:6 Sequence 59 0:6 move second child to first child ( temp 4-component vector of float) 60 0:6 'bar' ( global 4-component vector of float) 61 0:6 foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float) 62 0:6 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo}) 63 0:6 Constant: 64 0:6 0 (const uint) 65 0:8 Sequence 66 0:8 move second child to first child ( temp 2-element array of 2-component vector of float) 67 0:8 'a1' ( global 2-element array of 2-component vector of float) 68 0:8 Construct vec2 ( temp 2-element array of 2-component vector of float) 69 0:8 Constant: 70 0:8 1.000000 71 0:8 2.000000 72 0:8 Construct vec2 ( temp 2-component vector of float) 73 0:8 direct index ( temp float) 74 0:8 foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float) 75 0:8 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo}) 76 0:8 Constant: 77 0:8 0 (const uint) 78 0:8 Constant: 79 0:8 0 (const int) 80 0:8 Constant: 81 0:8 4.000000 82 0:12 Function Definition: @main( ( temp 4-component vector of float) 83 0:12 Function Parameters: 84 0:? Sequence 85 0:13 Branch: Return with expression 86 0:13 'bar' ( global 4-component vector of float) 87 0:12 Function Definition: main( ( temp void) 88 0:12 Function Parameters: 89 0:? Sequence 90 0:12 move second child to first child ( temp 4-component vector of float) 91 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 92 0:12 Function Call: @main( ( temp 4-component vector of float) 93 0:? Linker Objects 94 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo}) 95 0:? 'bar' ( global 4-component vector of float) 96 0:? 'a1' ( global 2-element array of 2-component vector of float) 97 0:? 'a2' ( const 2-element array of 2-component vector of float) 98 0:? 5.000000 99 0:? 6.000000 100 0:? 7.000000 101 0:? 8.000000 102 0:? '@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) 153 41(@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