1hlsl.array.implicit-size.frag 2Shader version: 500 3gl_FragCoord origin is upper left 40:? Sequence 50:3 Sequence 60:3 move second child to first child ( temp 5-element array of float) 70:3 'g_array' ( global 5-element array of float) 80:3 Constant: 90:3 1.000000 100:3 2.000000 110:3 3.000000 120:3 4.000000 130:3 5.000000 140:6 Sequence 150:6 move second child to first child ( temp 7-element array of float) 160:6 'g_array_unused' ( global 7-element array of float) 170:6 Constant: 180:6 1.000000 190:6 2.000000 200:6 3.000000 210:6 4.000000 220:6 5.000000 230:6 6.000000 240:6 7.000000 250:12 Sequence 260:12 move second child to first child ( temp 2-element array of structure{ temp int i, temp float f}) 270:12 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f}) 280:12 Constant: 290:12 1 (const int) 300:12 2.000000 310:12 3 (const int) 320:12 4.000000 330:26 Function Definition: main(struct-PS_OUTPUT-vf41; ( temp void) 340:26 Function Parameters: 350:26 'ps_output' ( out structure{ temp 4-component vector of float color}) 360:? Sequence 370:28 Sequence 380:28 move second child to first child ( temp 3-element array of float) 390:28 'l_array' ( temp 3-element array of float) 400:28 Constant: 410:28 1.000000 420:28 2.000000 430:28 3.000000 440:31 move second child to first child ( temp 4-component vector of float) 450:31 color: direct index for structure ( temp 4-component vector of float) 460:31 'ps_output' ( out structure{ temp 4-component vector of float color}) 470:31 Constant: 480:31 0 (const int) 490:31 Construct vec4 ( temp 4-component vector of float) 500:31 add ( temp float) 510:31 add ( temp float) 520:31 add ( temp float) 530:31 add ( temp float) 540:31 direct index ( temp float) 550:31 'g_array' ( global 5-element array of float) 560:31 Constant: 570:31 0 (const int) 580:31 direct index ( temp float) 590:31 'g_array' ( global 5-element array of float) 600:31 Constant: 610:31 4 (const int) 620:31 direct index ( temp float) 630:31 'l_array' ( temp 3-element array of float) 640:31 Constant: 650:31 1 (const int) 660:31 f: direct index for structure ( temp float) 670:31 direct index ( temp structure{ temp int i, temp float f}) 680:31 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f}) 690:31 Constant: 700:31 0 (const int) 710:31 Constant: 720:31 1 (const int) 730:31 indirect index ( temp float) 740:31 'g_array' ( global 5-element array of float) 750:31 'idx' ( temp int) 760:? Linker Objects 770:? 'g_array' ( global 5-element array of float) 780:? 'g_array_unused' ( global 7-element array of float) 790:? 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f}) 80 81 82Linked fragment stage: 83 84WARNING: Linking fragment stage: Entry point not found 85 86Shader version: 500 87gl_FragCoord origin is upper left 880:? Sequence 890:3 Sequence 900:3 move second child to first child ( temp 5-element array of float) 910:3 'g_array' ( global 5-element array of float) 920:3 Constant: 930:3 1.000000 940:3 2.000000 950:3 3.000000 960:3 4.000000 970:3 5.000000 980:6 Sequence 990:6 move second child to first child ( temp 7-element array of float) 1000:6 'g_array_unused' ( global 7-element array of float) 1010:6 Constant: 1020:6 1.000000 1030:6 2.000000 1040:6 3.000000 1050:6 4.000000 1060:6 5.000000 1070:6 6.000000 1080:6 7.000000 1090:12 Sequence 1100:12 move second child to first child ( temp 2-element array of structure{ temp int i, temp float f}) 1110:12 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f}) 1120:12 Constant: 1130:12 1 (const int) 1140:12 2.000000 1150:12 3 (const int) 1160:12 4.000000 1170:26 Function Definition: main(struct-PS_OUTPUT-vf41; ( temp void) 1180:26 Function Parameters: 1190:26 'ps_output' ( out structure{ temp 4-component vector of float color}) 1200:? Sequence 1210:28 Sequence 1220:28 move second child to first child ( temp 3-element array of float) 1230:28 'l_array' ( temp 3-element array of float) 1240:28 Constant: 1250:28 1.000000 1260:28 2.000000 1270:28 3.000000 1280:31 move second child to first child ( temp 4-component vector of float) 1290:31 color: direct index for structure ( temp 4-component vector of float) 1300:31 'ps_output' ( out structure{ temp 4-component vector of float color}) 1310:31 Constant: 1320:31 0 (const int) 1330:31 Construct vec4 ( temp 4-component vector of float) 1340:31 add ( temp float) 1350:31 add ( temp float) 1360:31 add ( temp float) 1370:31 add ( temp float) 1380:31 direct index ( temp float) 1390:31 'g_array' ( global 5-element array of float) 1400:31 Constant: 1410:31 0 (const int) 1420:31 direct index ( temp float) 1430:31 'g_array' ( global 5-element array of float) 1440:31 Constant: 1450:31 4 (const int) 1460:31 direct index ( temp float) 1470:31 'l_array' ( temp 3-element array of float) 1480:31 Constant: 1490:31 1 (const int) 1500:31 f: direct index for structure ( temp float) 1510:31 direct index ( temp structure{ temp int i, temp float f}) 1520:31 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f}) 1530:31 Constant: 1540:31 0 (const int) 1550:31 Constant: 1560:31 1 (const int) 1570:31 indirect index ( temp float) 1580:31 'g_array' ( global 5-element array of float) 1590:31 'idx' ( temp int) 1600:? Linker Objects 1610:? 'g_array' ( global 5-element array of float) 1620:? 'g_array_unused' ( global 7-element array of float) 1630:? 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f}) 164 165// Module Version 10000 166// Generated by (magic number): 8000a 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 20928(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) 2344(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 24112(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