1 hlsl.gather.array.dx10.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 using depth_any 5 0:? Sequence 6 0:24 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 7 0:24 Function Parameters: 8 0:? Sequence 9 0:29 Sequence 10 0:29 move second child to first child ( temp 4-component vector of float) 11 0:29 'txval20' ( temp 4-component vector of float) 12 0:29 textureGather ( temp 4-component vector of float) 13 0:29 Construct combined texture-sampler ( temp sampler2DArray) 14 0:29 'g_tTex2df4a' ( uniform texture2DArray) 15 0:29 'g_sSamp' (layout( binding=0) uniform sampler) 16 0:? Constant: 17 0:? 0.100000 18 0:? 0.200000 19 0:? 0.300000 20 0:30 Sequence 21 0:30 move second child to first child ( temp 4-component vector of int) 22 0:30 'txval21' ( temp 4-component vector of int) 23 0:30 textureGather ( temp 4-component vector of int) 24 0:30 Construct combined texture-sampler ( temp isampler2DArray) 25 0:30 'g_tTex2di4a' ( uniform itexture2DArray) 26 0:30 'g_sSamp' (layout( binding=0) uniform sampler) 27 0:? Constant: 28 0:? 0.300000 29 0:? 0.400000 30 0:? 0.500000 31 0:31 Sequence 32 0:31 move second child to first child ( temp 4-component vector of uint) 33 0:31 'txval22' ( temp 4-component vector of uint) 34 0:31 textureGather ( temp 4-component vector of uint) 35 0:31 Construct combined texture-sampler ( temp usampler2DArray) 36 0:31 'g_tTex2du4a' ( uniform utexture2DArray) 37 0:31 'g_sSamp' (layout( binding=0) uniform sampler) 38 0:? Constant: 39 0:? 0.500000 40 0:? 0.600000 41 0:? 0.700000 42 0:35 Sequence 43 0:35 move second child to first child ( temp 4-component vector of float) 44 0:35 'txval40' ( temp 4-component vector of float) 45 0:35 textureGather ( temp 4-component vector of float) 46 0:35 Construct combined texture-sampler ( temp samplerCubeArray) 47 0:35 'g_tTexcdf4a' ( uniform textureCubeArray) 48 0:35 'g_sSamp' (layout( binding=0) uniform sampler) 49 0:? Constant: 50 0:? 0.100000 51 0:? 0.200000 52 0:? 0.300000 53 0:? 0.400000 54 0:36 Sequence 55 0:36 move second child to first child ( temp 4-component vector of int) 56 0:36 'txval41' ( temp 4-component vector of int) 57 0:36 textureGather ( temp 4-component vector of int) 58 0:36 Construct combined texture-sampler ( temp isamplerCubeArray) 59 0:36 'g_tTexcdi4a' ( uniform itextureCubeArray) 60 0:36 'g_sSamp' (layout( binding=0) uniform sampler) 61 0:? Constant: 62 0:? 0.400000 63 0:? 0.500000 64 0:? 0.600000 65 0:? 0.700000 66 0:37 Sequence 67 0:37 move second child to first child ( temp 4-component vector of uint) 68 0:37 'txval42' ( temp 4-component vector of uint) 69 0:37 textureGather ( temp 4-component vector of uint) 70 0:37 Construct combined texture-sampler ( temp usamplerCubeArray) 71 0:37 'g_tTexcdu4a' ( uniform utextureCubeArray) 72 0:37 'g_sSamp' (layout( binding=0) uniform sampler) 73 0:? Constant: 74 0:? 0.700000 75 0:? 0.800000 76 0:? 0.900000 77 0:? 1.000000 78 0:39 move second child to first child ( temp 4-component vector of float) 79 0:39 Color: direct index for structure ( temp 4-component vector of float) 80 0:39 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 81 0:39 Constant: 82 0:39 0 (const int) 83 0:39 Constant: 84 0:39 1.000000 85 0:39 1.000000 86 0:39 1.000000 87 0:39 1.000000 88 0:40 move second child to first child ( temp float) 89 0:40 Depth: direct index for structure ( temp float) 90 0:40 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 91 0:40 Constant: 92 0:40 1 (const int) 93 0:40 Constant: 94 0:40 1.000000 95 0:42 Branch: Return with expression 96 0:42 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 97 0:24 Function Definition: main( ( temp void) 98 0:24 Function Parameters: 99 0:? Sequence 100 0:24 Sequence 101 0:24 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 102 0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 103 0:24 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 104 0:24 move second child to first child ( temp 4-component vector of float) 105 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 106 0:24 Color: direct index for structure ( temp 4-component vector of float) 107 0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 108 0:24 Constant: 109 0:24 0 (const int) 110 0:24 move second child to first child ( temp float) 111 0:? '@entryPointOutput.Depth' ( out float FragDepth) 112 0:24 Depth: direct index for structure ( temp float) 113 0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 114 0:24 Constant: 115 0:24 1 (const int) 116 0:? Linker Objects 117 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 118 0:? 'g_tTex1df4a' (layout( binding=1) uniform texture1DArray) 119 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1DArray) 120 0:? 'g_tTex1di4a' ( uniform itexture1DArray) 121 0:? 'g_tTex1du4a' ( uniform utexture1DArray) 122 0:? 'g_tTex2df4a' ( uniform texture2DArray) 123 0:? 'g_tTex2di4a' ( uniform itexture2DArray) 124 0:? 'g_tTex2du4a' ( uniform utexture2DArray) 125 0:? 'g_tTexcdf4a' ( uniform textureCubeArray) 126 0:? 'g_tTexcdi4a' ( uniform itextureCubeArray) 127 0:? 'g_tTexcdu4a' ( uniform utextureCubeArray) 128 0:? '@entryPointOutput.Depth' ( out float FragDepth) 129 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 130 131 132 Linked fragment stage: 133 134 135 Shader version: 500 136 gl_FragCoord origin is upper left 137 using depth_any 138 0:? Sequence 139 0:24 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 140 0:24 Function Parameters: 141 0:? Sequence 142 0:29 Sequence 143 0:29 move second child to first child ( temp 4-component vector of float) 144 0:29 'txval20' ( temp 4-component vector of float) 145 0:29 textureGather ( temp 4-component vector of float) 146 0:29 Construct combined texture-sampler ( temp sampler2DArray) 147 0:29 'g_tTex2df4a' ( uniform texture2DArray) 148 0:29 'g_sSamp' (layout( binding=0) uniform sampler) 149 0:? Constant: 150 0:? 0.100000 151 0:? 0.200000 152 0:? 0.300000 153 0:30 Sequence 154 0:30 move second child to first child ( temp 4-component vector of int) 155 0:30 'txval21' ( temp 4-component vector of int) 156 0:30 textureGather ( temp 4-component vector of int) 157 0:30 Construct combined texture-sampler ( temp isampler2DArray) 158 0:30 'g_tTex2di4a' ( uniform itexture2DArray) 159 0:30 'g_sSamp' (layout( binding=0) uniform sampler) 160 0:? Constant: 161 0:? 0.300000 162 0:? 0.400000 163 0:? 0.500000 164 0:31 Sequence 165 0:31 move second child to first child ( temp 4-component vector of uint) 166 0:31 'txval22' ( temp 4-component vector of uint) 167 0:31 textureGather ( temp 4-component vector of uint) 168 0:31 Construct combined texture-sampler ( temp usampler2DArray) 169 0:31 'g_tTex2du4a' ( uniform utexture2DArray) 170 0:31 'g_sSamp' (layout( binding=0) uniform sampler) 171 0:? Constant: 172 0:? 0.500000 173 0:? 0.600000 174 0:? 0.700000 175 0:35 Sequence 176 0:35 move second child to first child ( temp 4-component vector of float) 177 0:35 'txval40' ( temp 4-component vector of float) 178 0:35 textureGather ( temp 4-component vector of float) 179 0:35 Construct combined texture-sampler ( temp samplerCubeArray) 180 0:35 'g_tTexcdf4a' ( uniform textureCubeArray) 181 0:35 'g_sSamp' (layout( binding=0) uniform sampler) 182 0:? Constant: 183 0:? 0.100000 184 0:? 0.200000 185 0:? 0.300000 186 0:? 0.400000 187 0:36 Sequence 188 0:36 move second child to first child ( temp 4-component vector of int) 189 0:36 'txval41' ( temp 4-component vector of int) 190 0:36 textureGather ( temp 4-component vector of int) 191 0:36 Construct combined texture-sampler ( temp isamplerCubeArray) 192 0:36 'g_tTexcdi4a' ( uniform itextureCubeArray) 193 0:36 'g_sSamp' (layout( binding=0) uniform sampler) 194 0:? Constant: 195 0:? 0.400000 196 0:? 0.500000 197 0:? 0.600000 198 0:? 0.700000 199 0:37 Sequence 200 0:37 move second child to first child ( temp 4-component vector of uint) 201 0:37 'txval42' ( temp 4-component vector of uint) 202 0:37 textureGather ( temp 4-component vector of uint) 203 0:37 Construct combined texture-sampler ( temp usamplerCubeArray) 204 0:37 'g_tTexcdu4a' ( uniform utextureCubeArray) 205 0:37 'g_sSamp' (layout( binding=0) uniform sampler) 206 0:? Constant: 207 0:? 0.700000 208 0:? 0.800000 209 0:? 0.900000 210 0:? 1.000000 211 0:39 move second child to first child ( temp 4-component vector of float) 212 0:39 Color: direct index for structure ( temp 4-component vector of float) 213 0:39 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 214 0:39 Constant: 215 0:39 0 (const int) 216 0:39 Constant: 217 0:39 1.000000 218 0:39 1.000000 219 0:39 1.000000 220 0:39 1.000000 221 0:40 move second child to first child ( temp float) 222 0:40 Depth: direct index for structure ( temp float) 223 0:40 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 224 0:40 Constant: 225 0:40 1 (const int) 226 0:40 Constant: 227 0:40 1.000000 228 0:42 Branch: Return with expression 229 0:42 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 230 0:24 Function Definition: main( ( temp void) 231 0:24 Function Parameters: 232 0:? Sequence 233 0:24 Sequence 234 0:24 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 235 0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 236 0:24 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 237 0:24 move second child to first child ( temp 4-component vector of float) 238 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 239 0:24 Color: direct index for structure ( temp 4-component vector of float) 240 0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 241 0:24 Constant: 242 0:24 0 (const int) 243 0:24 move second child to first child ( temp float) 244 0:? '@entryPointOutput.Depth' ( out float FragDepth) 245 0:24 Depth: direct index for structure ( temp float) 246 0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 247 0:24 Constant: 248 0:24 1 (const int) 249 0:? Linker Objects 250 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 251 0:? 'g_tTex1df4a' (layout( binding=1) uniform texture1DArray) 252 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1DArray) 253 0:? 'g_tTex1di4a' ( uniform itexture1DArray) 254 0:? 'g_tTex1du4a' ( uniform utexture1DArray) 255 0:? 'g_tTex2df4a' ( uniform texture2DArray) 256 0:? 'g_tTex2di4a' ( uniform itexture2DArray) 257 0:? 'g_tTex2du4a' ( uniform utexture2DArray) 258 0:? 'g_tTexcdf4a' ( uniform textureCubeArray) 259 0:? 'g_tTexcdi4a' ( uniform itextureCubeArray) 260 0:? 'g_tTexcdu4a' ( uniform utextureCubeArray) 261 0:? '@entryPointOutput.Depth' ( out float FragDepth) 262 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 263 264 // Module Version 10000 265 // Generated by (magic number): 80007 266 // Id's are bound by 124 267 268 Capability Shader 269 Capability Sampled1D 270 Capability SampledCubeArray 271 1: ExtInstImport "GLSL.std.450" 272 MemoryModel Logical GLSL450 273 EntryPoint Fragment 4 "main" 107 111 274 ExecutionMode 4 OriginUpperLeft 275 ExecutionMode 4 DepthReplacing 276 Source HLSL 500 277 Name 4 "main" 278 Name 8 "PS_OUTPUT" 279 MemberName 8(PS_OUTPUT) 0 "Color" 280 MemberName 8(PS_OUTPUT) 1 "Depth" 281 Name 10 "@main(" 282 Name 13 "txval20" 283 Name 16 "g_tTex2df4a" 284 Name 20 "g_sSamp" 285 Name 34 "txval21" 286 Name 37 "g_tTex2di4a" 287 Name 49 "txval22" 288 Name 52 "g_tTex2du4a" 289 Name 61 "txval40" 290 Name 64 "g_tTexcdf4a" 291 Name 71 "txval41" 292 Name 74 "g_tTexcdi4a" 293 Name 81 "txval42" 294 Name 84 "g_tTexcdu4a" 295 Name 95 "psout" 296 Name 104 "flattenTemp" 297 Name 107 "@entryPointOutput.Color" 298 Name 111 "@entryPointOutput.Depth" 299 Name 116 "g_tTex1df4a" 300 Name 117 "g_tTex1df4" 301 Name 120 "g_tTex1di4a" 302 Name 123 "g_tTex1du4a" 303 Decorate 16(g_tTex2df4a) DescriptorSet 0 304 Decorate 16(g_tTex2df4a) Binding 0 305 Decorate 20(g_sSamp) DescriptorSet 0 306 Decorate 20(g_sSamp) Binding 0 307 Decorate 37(g_tTex2di4a) DescriptorSet 0 308 Decorate 37(g_tTex2di4a) Binding 0 309 Decorate 52(g_tTex2du4a) DescriptorSet 0 310 Decorate 52(g_tTex2du4a) Binding 0 311 Decorate 64(g_tTexcdf4a) DescriptorSet 0 312 Decorate 64(g_tTexcdf4a) Binding 0 313 Decorate 74(g_tTexcdi4a) DescriptorSet 0 314 Decorate 74(g_tTexcdi4a) Binding 0 315 Decorate 84(g_tTexcdu4a) DescriptorSet 0 316 Decorate 84(g_tTexcdu4a) Binding 0 317 Decorate 107(@entryPointOutput.Color) Location 0 318 Decorate 111(@entryPointOutput.Depth) BuiltIn FragDepth 319 Decorate 116(g_tTex1df4a) DescriptorSet 0 320 Decorate 116(g_tTex1df4a) Binding 1 321 Decorate 117(g_tTex1df4) DescriptorSet 0 322 Decorate 117(g_tTex1df4) Binding 0 323 Decorate 120(g_tTex1di4a) DescriptorSet 0 324 Decorate 120(g_tTex1di4a) Binding 0 325 Decorate 123(g_tTex1du4a) DescriptorSet 0 326 Decorate 123(g_tTex1du4a) Binding 0 327 2: TypeVoid 328 3: TypeFunction 2 329 6: TypeFloat 32 330 7: TypeVector 6(float) 4 331 8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float) 332 9: TypeFunction 8(PS_OUTPUT) 333 12: TypePointer Function 7(fvec4) 334 14: TypeImage 6(float) 2D array sampled format:Unknown 335 15: TypePointer UniformConstant 14 336 16(g_tTex2df4a): 15(ptr) Variable UniformConstant 337 18: TypeSampler 338 19: TypePointer UniformConstant 18 339 20(g_sSamp): 19(ptr) Variable UniformConstant 340 22: TypeSampledImage 14 341 24: TypeVector 6(float) 3 342 25: 6(float) Constant 1036831949 343 26: 6(float) Constant 1045220557 344 27: 6(float) Constant 1050253722 345 28: 24(fvec3) ConstantComposite 25 26 27 346 29: TypeInt 32 1 347 30: 29(int) Constant 0 348 32: TypeVector 29(int) 4 349 33: TypePointer Function 32(ivec4) 350 35: TypeImage 29(int) 2D array sampled format:Unknown 351 36: TypePointer UniformConstant 35 352 37(g_tTex2di4a): 36(ptr) Variable UniformConstant 353 40: TypeSampledImage 35 354 42: 6(float) Constant 1053609165 355 43: 6(float) Constant 1056964608 356 44: 24(fvec3) ConstantComposite 27 42 43 357 46: TypeInt 32 0 358 47: TypeVector 46(int) 4 359 48: TypePointer Function 47(ivec4) 360 50: TypeImage 46(int) 2D array sampled format:Unknown 361 51: TypePointer UniformConstant 50 362 52(g_tTex2du4a): 51(ptr) Variable UniformConstant 363 55: TypeSampledImage 50 364 57: 6(float) Constant 1058642330 365 58: 6(float) Constant 1060320051 366 59: 24(fvec3) ConstantComposite 43 57 58 367 62: TypeImage 6(float) Cube array sampled format:Unknown 368 63: TypePointer UniformConstant 62 369 64(g_tTexcdf4a): 63(ptr) Variable UniformConstant 370 67: TypeSampledImage 62 371 69: 7(fvec4) ConstantComposite 25 26 27 42 372 72: TypeImage 29(int) Cube array sampled format:Unknown 373 73: TypePointer UniformConstant 72 374 74(g_tTexcdi4a): 73(ptr) Variable UniformConstant 375 77: TypeSampledImage 72 376 79: 7(fvec4) ConstantComposite 42 43 57 58 377 82: TypeImage 46(int) Cube array sampled format:Unknown 378 83: TypePointer UniformConstant 82 379 84(g_tTexcdu4a): 83(ptr) Variable UniformConstant 380 87: TypeSampledImage 82 381 89: 6(float) Constant 1061997773 382 90: 6(float) Constant 1063675494 383 91: 6(float) Constant 1065353216 384 92: 7(fvec4) ConstantComposite 58 89 90 91 385 94: TypePointer Function 8(PS_OUTPUT) 386 96: 7(fvec4) ConstantComposite 91 91 91 91 387 98: 29(int) Constant 1 388 99: TypePointer Function 6(float) 389 106: TypePointer Output 7(fvec4) 390 107(@entryPointOutput.Color): 106(ptr) Variable Output 391 110: TypePointer Output 6(float) 392 111(@entryPointOutput.Depth): 110(ptr) Variable Output 393 114: TypeImage 6(float) 1D array sampled format:Unknown 394 115: TypePointer UniformConstant 114 395 116(g_tTex1df4a): 115(ptr) Variable UniformConstant 396 117(g_tTex1df4): 115(ptr) Variable UniformConstant 397 118: TypeImage 29(int) 1D array sampled format:Unknown 398 119: TypePointer UniformConstant 118 399 120(g_tTex1di4a): 119(ptr) Variable UniformConstant 400 121: TypeImage 46(int) 1D array sampled format:Unknown 401 122: TypePointer UniformConstant 121 402 123(g_tTex1du4a): 122(ptr) Variable UniformConstant 403 4(main): 2 Function None 3 404 5: Label 405 104(flattenTemp): 94(ptr) Variable Function 406 105:8(PS_OUTPUT) FunctionCall 10(@main() 407 Store 104(flattenTemp) 105 408 108: 12(ptr) AccessChain 104(flattenTemp) 30 409 109: 7(fvec4) Load 108 410 Store 107(@entryPointOutput.Color) 109 411 112: 99(ptr) AccessChain 104(flattenTemp) 98 412 113: 6(float) Load 112 413 Store 111(@entryPointOutput.Depth) 113 414 Return 415 FunctionEnd 416 10(@main():8(PS_OUTPUT) Function None 9 417 11: Label 418 13(txval20): 12(ptr) Variable Function 419 34(txval21): 33(ptr) Variable Function 420 49(txval22): 48(ptr) Variable Function 421 61(txval40): 12(ptr) Variable Function 422 71(txval41): 33(ptr) Variable Function 423 81(txval42): 48(ptr) Variable Function 424 95(psout): 94(ptr) Variable Function 425 17: 14 Load 16(g_tTex2df4a) 426 21: 18 Load 20(g_sSamp) 427 23: 22 SampledImage 17 21 428 31: 7(fvec4) ImageGather 23 28 30 429 Store 13(txval20) 31 430 38: 35 Load 37(g_tTex2di4a) 431 39: 18 Load 20(g_sSamp) 432 41: 40 SampledImage 38 39 433 45: 32(ivec4) ImageGather 41 44 30 434 Store 34(txval21) 45 435 53: 50 Load 52(g_tTex2du4a) 436 54: 18 Load 20(g_sSamp) 437 56: 55 SampledImage 53 54 438 60: 47(ivec4) ImageGather 56 59 30 439 Store 49(txval22) 60 440 65: 62 Load 64(g_tTexcdf4a) 441 66: 18 Load 20(g_sSamp) 442 68: 67 SampledImage 65 66 443 70: 7(fvec4) ImageGather 68 69 30 444 Store 61(txval40) 70 445 75: 72 Load 74(g_tTexcdi4a) 446 76: 18 Load 20(g_sSamp) 447 78: 77 SampledImage 75 76 448 80: 32(ivec4) ImageGather 78 79 30 449 Store 71(txval41) 80 450 85: 82 Load 84(g_tTexcdu4a) 451 86: 18 Load 20(g_sSamp) 452 88: 87 SampledImage 85 86 453 93: 47(ivec4) ImageGather 88 92 30 454 Store 81(txval42) 93 455 97: 12(ptr) AccessChain 95(psout) 30 456 Store 97 96 457 100: 99(ptr) AccessChain 95(psout) 98 458 Store 100 91 459 101:8(PS_OUTPUT) Load 95(psout) 460 ReturnValue 101 461 FunctionEnd 462