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