1hlsl.structarray.flatten.frag 2Shader version: 500 3gl_FragCoord origin is upper left 40:? Sequence 50:23 Function Definition: @main(struct-PS_OUTPUT-vf41; ( temp void) 60:23 Function Parameters: 70:23 'ps_output' ( out structure{ temp 4-component vector of float color}) 80:? Sequence 90:24 move second child to first child ( temp 4-component vector of float) 100:24 color: direct index for structure ( temp 4-component vector of float) 110:24 'ps_output' ( out structure{ temp 4-component vector of float color}) 120:24 Constant: 130:24 0 (const int) 140:26 add ( temp 4-component vector of float) 150:25 add ( temp 4-component vector of float) 160:25 texture ( temp 4-component vector of float) 170:25 Construct combined texture-sampler ( temp sampler1D) 180:? 'g_texdata.tex' ( uniform texture1D) 190:? 'g_texdata.samp' ( uniform sampler) 200:25 Constant: 210:25 0.500000 220:26 texture ( temp 4-component vector of float) 230:26 Construct combined texture-sampler ( temp sampler1D) 240:? 'g_texdata_array[1].tex' ( uniform texture1D) 250:? 'g_texdata_array[1].samp' ( uniform sampler) 260:26 Constant: 270:26 0.400000 280:27 texture ( temp 4-component vector of float) 290:27 Construct combined texture-sampler ( temp sampler1D) 300:27 direct index ( temp texture1D) 310:? 'g_texdata_array2[1].tex' ( uniform 2-element array of texture1D) 320:27 Constant: 330:27 0 (const int) 340:27 direct index ( temp sampler) 350:? 'g_texdata_array2[1].samp' ( uniform 2-element array of sampler) 360:27 Constant: 370:27 0 (const int) 380:27 Constant: 390:27 0.300000 400:23 Function Definition: main( ( temp void) 410:23 Function Parameters: 420:? Sequence 430:23 Function Call: @main(struct-PS_OUTPUT-vf41; ( temp void) 440:? 'ps_output' ( temp structure{ temp 4-component vector of float color}) 450:23 Sequence 460:23 move second child to first child ( temp 4-component vector of float) 470:? 'ps_output.color' (layout( location=0) out 4-component vector of float) 480:23 color: direct index for structure ( temp 4-component vector of float) 490:? 'ps_output' ( temp structure{ temp 4-component vector of float color}) 500:23 Constant: 510:23 0 (const int) 520:? Linker Objects 530:? 'g_samp' ( uniform sampler) 540:? 'g_tex' ( uniform texture1D) 550:? 'g_texdata.samp' ( uniform sampler) 560:? 'g_texdata.tex' ( uniform texture1D) 570:? 'g_texdata.nonopaque_thing' ( uniform int) 580:? 'g_texdata_array[0].samp' ( uniform sampler) 590:? 'g_texdata_array[0].tex' ( uniform texture1D) 600:? 'g_texdata_array[0].nonopaque_thing' ( uniform int) 610:? 'g_texdata_array[1].samp' ( uniform sampler) 620:? 'g_texdata_array[1].tex' ( uniform texture1D) 630:? 'g_texdata_array[1].nonopaque_thing' ( uniform int) 640:? 'g_texdata_array[2].samp' ( uniform sampler) 650:? 'g_texdata_array[2].tex' ( uniform texture1D) 660:? 'g_texdata_array[2].nonopaque_thing' ( uniform int) 670:? 'g_texdata_array2[0].samp' ( uniform 2-element array of sampler) 680:? 'g_texdata_array2[0].tex' ( uniform 2-element array of texture1D) 690:? 'g_texdata_array2[0].nonopaque_thing' ( uniform int) 700:? 'g_texdata_array2[1].samp' ( uniform 2-element array of sampler) 710:? 'g_texdata_array2[1].tex' ( uniform 2-element array of texture1D) 720:? 'g_texdata_array2[1].nonopaque_thing' ( uniform int) 730:? 'g_texdata_array2[2].samp' ( uniform 2-element array of sampler) 740:? 'g_texdata_array2[2].tex' ( uniform 2-element array of texture1D) 750:? 'g_texdata_array2[2].nonopaque_thing' ( uniform int) 760:? 'ps_output.color' (layout( location=0) out 4-component vector of float) 77 78 79Linked fragment stage: 80 81 82Shader version: 500 83gl_FragCoord origin is upper left 840:? Sequence 850:23 Function Definition: @main(struct-PS_OUTPUT-vf41; ( temp void) 860:23 Function Parameters: 870:23 'ps_output' ( out structure{ temp 4-component vector of float color}) 880:? Sequence 890:24 move second child to first child ( temp 4-component vector of float) 900:24 color: direct index for structure ( temp 4-component vector of float) 910:24 'ps_output' ( out structure{ temp 4-component vector of float color}) 920:24 Constant: 930:24 0 (const int) 940:26 add ( temp 4-component vector of float) 950:25 add ( temp 4-component vector of float) 960:25 texture ( temp 4-component vector of float) 970:25 Construct combined texture-sampler ( temp sampler1D) 980:? 'g_texdata.tex' ( uniform texture1D) 990:? 'g_texdata.samp' ( uniform sampler) 1000:25 Constant: 1010:25 0.500000 1020:26 texture ( temp 4-component vector of float) 1030:26 Construct combined texture-sampler ( temp sampler1D) 1040:? 'g_texdata_array[1].tex' ( uniform texture1D) 1050:? 'g_texdata_array[1].samp' ( uniform sampler) 1060:26 Constant: 1070:26 0.400000 1080:27 texture ( temp 4-component vector of float) 1090:27 Construct combined texture-sampler ( temp sampler1D) 1100:27 direct index ( temp texture1D) 1110:? 'g_texdata_array2[1].tex' ( uniform 2-element array of texture1D) 1120:27 Constant: 1130:27 0 (const int) 1140:27 direct index ( temp sampler) 1150:? 'g_texdata_array2[1].samp' ( uniform 2-element array of sampler) 1160:27 Constant: 1170:27 0 (const int) 1180:27 Constant: 1190:27 0.300000 1200:23 Function Definition: main( ( temp void) 1210:23 Function Parameters: 1220:? Sequence 1230:23 Function Call: @main(struct-PS_OUTPUT-vf41; ( temp void) 1240:? 'ps_output' ( temp structure{ temp 4-component vector of float color}) 1250:23 Sequence 1260:23 move second child to first child ( temp 4-component vector of float) 1270:? 'ps_output.color' (layout( location=0) out 4-component vector of float) 1280:23 color: direct index for structure ( temp 4-component vector of float) 1290:? 'ps_output' ( temp structure{ temp 4-component vector of float color}) 1300:23 Constant: 1310:23 0 (const int) 1320:? Linker Objects 1330:? 'g_samp' ( uniform sampler) 1340:? 'g_tex' ( uniform texture1D) 1350:? 'g_texdata.samp' ( uniform sampler) 1360:? 'g_texdata.tex' ( uniform texture1D) 1370:? 'g_texdata.nonopaque_thing' ( uniform int) 1380:? 'g_texdata_array[0].samp' ( uniform sampler) 1390:? 'g_texdata_array[0].tex' ( uniform texture1D) 1400:? 'g_texdata_array[0].nonopaque_thing' ( uniform int) 1410:? 'g_texdata_array[1].samp' ( uniform sampler) 1420:? 'g_texdata_array[1].tex' ( uniform texture1D) 1430:? 'g_texdata_array[1].nonopaque_thing' ( uniform int) 1440:? 'g_texdata_array[2].samp' ( uniform sampler) 1450:? 'g_texdata_array[2].tex' ( uniform texture1D) 1460:? 'g_texdata_array[2].nonopaque_thing' ( uniform int) 1470:? 'g_texdata_array2[0].samp' ( uniform 2-element array of sampler) 1480:? 'g_texdata_array2[0].tex' ( uniform 2-element array of texture1D) 1490:? 'g_texdata_array2[0].nonopaque_thing' ( uniform int) 1500:? 'g_texdata_array2[1].samp' ( uniform 2-element array of sampler) 1510:? 'g_texdata_array2[1].tex' ( uniform 2-element array of texture1D) 1520:? 'g_texdata_array2[1].nonopaque_thing' ( uniform int) 1530:? 'g_texdata_array2[2].samp' ( uniform 2-element array of sampler) 1540:? 'g_texdata_array2[2].tex' ( uniform 2-element array of texture1D) 1550:? 'g_texdata_array2[2].nonopaque_thing' ( uniform int) 1560:? 'ps_output.color' (layout( location=0) out 4-component vector of float) 157 158Validation failed 159// Module Version 10000 160// Generated by (magic number): 8000a 161// Id's are bound by 80 162 163 Capability Shader 164 Capability Sampled1D 165 1: ExtInstImport "GLSL.std.450" 166 MemoryModel Logical GLSL450 167 EntryPoint Fragment 4 "main" 59 168 ExecutionMode 4 OriginUpperLeft 169 Source HLSL 500 170 Name 4 "main" 171 Name 8 "PS_OUTPUT" 172 MemberName 8(PS_OUTPUT) 0 "color" 173 Name 12 "@main(struct-PS_OUTPUT-vf41;" 174 Name 11 "ps_output" 175 Name 18 "g_texdata.tex" 176 Name 22 "g_texdata.samp" 177 Name 28 "g_texdata_array[1].tex" 178 Name 30 "g_texdata_array[1].samp" 179 Name 40 "g_texdata_array2[1].tex" 180 Name 45 "g_texdata_array2[1].samp" 181 Name 54 "ps_output" 182 Name 55 "param" 183 Name 59 "ps_output.color" 184 Name 62 "g_samp" 185 Name 63 "g_tex" 186 Name 65 "g_texdata.nonopaque_thing" 187 Name 66 "g_texdata_array[0].samp" 188 Name 67 "g_texdata_array[0].tex" 189 Name 68 "g_texdata_array[0].nonopaque_thing" 190 Name 69 "g_texdata_array[1].nonopaque_thing" 191 Name 70 "g_texdata_array[2].samp" 192 Name 71 "g_texdata_array[2].tex" 193 Name 72 "g_texdata_array[2].nonopaque_thing" 194 Name 73 "g_texdata_array2[0].samp" 195 Name 74 "g_texdata_array2[0].tex" 196 Name 75 "g_texdata_array2[0].nonopaque_thing" 197 Name 76 "g_texdata_array2[1].nonopaque_thing" 198 Name 77 "g_texdata_array2[2].samp" 199 Name 78 "g_texdata_array2[2].tex" 200 Name 79 "g_texdata_array2[2].nonopaque_thing" 201 Decorate 18(g_texdata.tex) DescriptorSet 0 202 Decorate 18(g_texdata.tex) Binding 1 203 Decorate 22(g_texdata.samp) DescriptorSet 0 204 Decorate 22(g_texdata.samp) Binding 0 205 Decorate 28(g_texdata_array[1].tex) DescriptorSet 0 206 Decorate 28(g_texdata_array[1].tex) Binding 3 207 Decorate 30(g_texdata_array[1].samp) DescriptorSet 0 208 Decorate 30(g_texdata_array[1].samp) Binding 2 209 Decorate 40(g_texdata_array2[1].tex) DescriptorSet 0 210 Decorate 40(g_texdata_array2[1].tex) Binding 5 211 Decorate 45(g_texdata_array2[1].samp) DescriptorSet 0 212 Decorate 45(g_texdata_array2[1].samp) Binding 4 213 Decorate 59(ps_output.color) Location 0 214 Decorate 62(g_samp) DescriptorSet 0 215 Decorate 62(g_samp) Binding 0 216 Decorate 63(g_tex) DescriptorSet 0 217 Decorate 63(g_tex) Binding 0 218 Decorate 65(g_texdata.nonopaque_thing) Location 0 219 Decorate 65(g_texdata.nonopaque_thing) DescriptorSet 0 220 Decorate 66(g_texdata_array[0].samp) DescriptorSet 0 221 Decorate 66(g_texdata_array[0].samp) Binding 0 222 Decorate 67(g_texdata_array[0].tex) DescriptorSet 0 223 Decorate 67(g_texdata_array[0].tex) Binding 0 224 Decorate 68(g_texdata_array[0].nonopaque_thing) Location 1 225 Decorate 68(g_texdata_array[0].nonopaque_thing) DescriptorSet 0 226 Decorate 69(g_texdata_array[1].nonopaque_thing) Location 2 227 Decorate 69(g_texdata_array[1].nonopaque_thing) DescriptorSet 0 228 Decorate 70(g_texdata_array[2].samp) DescriptorSet 0 229 Decorate 70(g_texdata_array[2].samp) Binding 0 230 Decorate 71(g_texdata_array[2].tex) DescriptorSet 0 231 Decorate 71(g_texdata_array[2].tex) Binding 0 232 Decorate 72(g_texdata_array[2].nonopaque_thing) Location 3 233 Decorate 72(g_texdata_array[2].nonopaque_thing) DescriptorSet 0 234 Decorate 73(g_texdata_array2[0].samp) DescriptorSet 0 235 Decorate 73(g_texdata_array2[0].samp) Binding 0 236 Decorate 74(g_texdata_array2[0].tex) DescriptorSet 0 237 Decorate 74(g_texdata_array2[0].tex) Binding 0 238 Decorate 75(g_texdata_array2[0].nonopaque_thing) Location 4 239 Decorate 75(g_texdata_array2[0].nonopaque_thing) DescriptorSet 0 240 Decorate 76(g_texdata_array2[1].nonopaque_thing) Location 5 241 Decorate 76(g_texdata_array2[1].nonopaque_thing) DescriptorSet 0 242 Decorate 77(g_texdata_array2[2].samp) DescriptorSet 0 243 Decorate 77(g_texdata_array2[2].samp) Binding 0 244 Decorate 78(g_texdata_array2[2].tex) DescriptorSet 0 245 Decorate 78(g_texdata_array2[2].tex) Binding 0 246 Decorate 79(g_texdata_array2[2].nonopaque_thing) Location 6 247 Decorate 79(g_texdata_array2[2].nonopaque_thing) DescriptorSet 0 248 2: TypeVoid 249 3: TypeFunction 2 250 6: TypeFloat 32 251 7: TypeVector 6(float) 4 252 8(PS_OUTPUT): TypeStruct 7(fvec4) 253 9: TypePointer Function 8(PS_OUTPUT) 254 10: TypeFunction 2 9(ptr) 255 14: TypeInt 32 1 256 15: 14(int) Constant 0 257 16: TypeImage 6(float) 1D sampled format:Unknown 258 17: TypePointer UniformConstant 16 25918(g_texdata.tex): 17(ptr) Variable UniformConstant 260 20: TypeSampler 261 21: TypePointer UniformConstant 20 26222(g_texdata.samp): 21(ptr) Variable UniformConstant 263 24: TypeSampledImage 16 264 26: 6(float) Constant 1056964608 26528(g_texdata_array[1].tex): 17(ptr) Variable UniformConstant 26630(g_texdata_array[1].samp): 21(ptr) Variable UniformConstant 267 33: 6(float) Constant 1053609165 268 36: TypeInt 32 0 269 37: 36(int) Constant 2 270 38: TypeArray 16 37 271 39: TypePointer UniformConstant 38 27240(g_texdata_array2[1].tex): 39(ptr) Variable UniformConstant 273 43: TypeArray 20 37 274 44: TypePointer UniformConstant 43 27545(g_texdata_array2[1].samp): 44(ptr) Variable UniformConstant 276 49: 6(float) Constant 1050253722 277 52: TypePointer Function 7(fvec4) 278 58: TypePointer Output 7(fvec4) 27959(ps_output.color): 58(ptr) Variable Output 280 62(g_samp): 21(ptr) Variable UniformConstant 281 63(g_tex): 17(ptr) Variable UniformConstant 282 64: TypePointer UniformConstant 14(int) 28365(g_texdata.nonopaque_thing): 64(ptr) Variable UniformConstant 28466(g_texdata_array[0].samp): 21(ptr) Variable UniformConstant 28567(g_texdata_array[0].tex): 17(ptr) Variable UniformConstant 28668(g_texdata_array[0].nonopaque_thing): 64(ptr) Variable UniformConstant 28769(g_texdata_array[1].nonopaque_thing): 64(ptr) Variable UniformConstant 28870(g_texdata_array[2].samp): 21(ptr) Variable UniformConstant 28971(g_texdata_array[2].tex): 17(ptr) Variable UniformConstant 29072(g_texdata_array[2].nonopaque_thing): 64(ptr) Variable UniformConstant 29173(g_texdata_array2[0].samp): 44(ptr) Variable UniformConstant 29274(g_texdata_array2[0].tex): 39(ptr) Variable UniformConstant 29375(g_texdata_array2[0].nonopaque_thing): 64(ptr) Variable UniformConstant 29476(g_texdata_array2[1].nonopaque_thing): 64(ptr) Variable UniformConstant 29577(g_texdata_array2[2].samp): 44(ptr) Variable UniformConstant 29678(g_texdata_array2[2].tex): 39(ptr) Variable UniformConstant 29779(g_texdata_array2[2].nonopaque_thing): 64(ptr) Variable UniformConstant 298 4(main): 2 Function None 3 299 5: Label 300 54(ps_output): 9(ptr) Variable Function 301 55(param): 9(ptr) Variable Function 302 56: 2 FunctionCall 12(@main(struct-PS_OUTPUT-vf41;) 55(param) 303 57:8(PS_OUTPUT) Load 55(param) 304 Store 54(ps_output) 57 305 60: 52(ptr) AccessChain 54(ps_output) 15 306 61: 7(fvec4) Load 60 307 Store 59(ps_output.color) 61 308 Return 309 FunctionEnd 31012(@main(struct-PS_OUTPUT-vf41;): 2 Function None 10 311 11(ps_output): 9(ptr) FunctionParameter 312 13: Label 313 19: 16 Load 18(g_texdata.tex) 314 23: 20 Load 22(g_texdata.samp) 315 25: 24 SampledImage 19 23 316 27: 7(fvec4) ImageSampleImplicitLod 25 26 317 29: 16 Load 28(g_texdata_array[1].tex) 318 31: 20 Load 30(g_texdata_array[1].samp) 319 32: 24 SampledImage 29 31 320 34: 7(fvec4) ImageSampleImplicitLod 32 33 321 35: 7(fvec4) FAdd 27 34 322 41: 17(ptr) AccessChain 40(g_texdata_array2[1].tex) 15 323 42: 16 Load 41 324 46: 21(ptr) AccessChain 45(g_texdata_array2[1].samp) 15 325 47: 20 Load 46 326 48: 24 SampledImage 42 47 327 50: 7(fvec4) ImageSampleImplicitLod 48 49 328 51: 7(fvec4) FAdd 35 50 329 53: 52(ptr) AccessChain 11(ps_output) 15 330 Store 53 51 331 Return 332 FunctionEnd 333