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