1 hlsl.samplebias.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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 textureOffset ( 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.500000 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 Validation failed 301 // Module Version 10000 302 // Generated by (magic number): 80007 303 // Id's are bound by 118 304 305 Capability Shader 306 Capability Sampled1D 307 1: ExtInstImport "GLSL.std.450" 308 MemoryModel Logical GLSL450 309 EntryPoint Fragment 4 "main" 110 114 310 ExecutionMode 4 OriginUpperLeft 311 ExecutionMode 4 DepthReplacing 312 Source HLSL 500 313 Name 4 "main" 314 Name 8 "PS_OUTPUT" 315 MemberName 8(PS_OUTPUT) 0 "Color" 316 MemberName 8(PS_OUTPUT) 1 "Depth" 317 Name 10 "@main(" 318 Name 13 "txval10" 319 Name 16 "g_tTex1df4" 320 Name 20 "g_sSamp" 321 Name 34 "txval11" 322 Name 37 "g_tTex1di4" 323 Name 49 "txval12" 324 Name 52 "g_tTex1du4" 325 Name 61 "txval20" 326 Name 64 "g_tTex2df4" 327 Name 74 "txval21" 328 Name 77 "g_tTex2di4" 329 Name 84 "txval22" 330 Name 87 "g_tTex2du4" 331 Name 98 "psout" 332 Name 107 "flattenTemp" 333 Name 110 "@entryPointOutput.Color" 334 Name 114 "@entryPointOutput.Depth" 335 Name 117 "g_tTex1df4a" 336 Decorate 16(g_tTex1df4) DescriptorSet 0 337 Decorate 16(g_tTex1df4) Binding 0 338 Decorate 20(g_sSamp) DescriptorSet 0 339 Decorate 20(g_sSamp) Binding 0 340 Decorate 37(g_tTex1di4) DescriptorSet 0 341 Decorate 37(g_tTex1di4) Binding 0 342 Decorate 52(g_tTex1du4) DescriptorSet 0 343 Decorate 52(g_tTex1du4) Binding 0 344 Decorate 64(g_tTex2df4) DescriptorSet 0 345 Decorate 64(g_tTex2df4) Binding 0 346 Decorate 77(g_tTex2di4) DescriptorSet 0 347 Decorate 77(g_tTex2di4) Binding 0 348 Decorate 87(g_tTex2du4) DescriptorSet 0 349 Decorate 87(g_tTex2du4) Binding 0 350 Decorate 110(@entryPointOutput.Color) Location 0 351 Decorate 114(@entryPointOutput.Depth) BuiltIn FragDepth 352 Decorate 117(g_tTex1df4a) DescriptorSet 0 353 Decorate 117(g_tTex1df4a) Binding 1 354 2: TypeVoid 355 3: TypeFunction 2 356 6: TypeFloat 32 357 7: TypeVector 6(float) 4 358 8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float) 359 9: TypeFunction 8(PS_OUTPUT) 360 12: TypePointer Function 7(fvec4) 361 14: TypeImage 6(float) 1D array sampled format:Unknown 362 15: TypePointer UniformConstant 14 363 16(g_tTex1df4): 15(ptr) Variable UniformConstant 364 18: TypeSampler 365 19: TypePointer UniformConstant 18 366 20(g_sSamp): 19(ptr) Variable UniformConstant 367 22: TypeSampledImage 14 368 24: TypeVector 6(float) 2 369 25: 6(float) Constant 1036831949 370 26: 6(float) Constant 1045220557 371 27: 24(fvec2) ConstantComposite 25 26 372 28: 6(float) Constant 1056964608 373 29: TypeInt 32 1 374 30: 29(int) Constant 0 375 32: TypeVector 29(int) 4 376 33: TypePointer Function 32(ivec4) 377 35: TypeImage 29(int) 1D array sampled format:Unknown 378 36: TypePointer UniformConstant 35 379 37(g_tTex1di4): 36(ptr) Variable UniformConstant 380 40: TypeSampledImage 35 381 42: 6(float) Constant 1050253722 382 43: 24(fvec2) ConstantComposite 26 42 383 44: 29(int) Constant 1 384 46: TypeInt 32 0 385 47: TypeVector 46(int) 4 386 48: TypePointer Function 47(ivec4) 387 50: TypeImage 46(int) 1D array sampled format:Unknown 388 51: TypePointer UniformConstant 50 389 52(g_tTex1du4): 51(ptr) Variable UniformConstant 390 55: TypeSampledImage 50 391 57: 6(float) Constant 1053609165 392 58: 24(fvec2) ConstantComposite 42 57 393 59: 29(int) Constant 2 394 62: TypeImage 6(float) 2D array sampled format:Unknown 395 63: TypePointer UniformConstant 62 396 64(g_tTex2df4): 63(ptr) Variable UniformConstant 397 67: TypeSampledImage 62 398 69: TypeVector 6(float) 3 399 70: 69(fvec3) ConstantComposite 25 26 42 400 71: TypeVector 29(int) 2 401 72: 71(ivec2) ConstantComposite 30 30 402 75: TypeImage 29(int) 2D array sampled format:Unknown 403 76: TypePointer UniformConstant 75 404 77(g_tTex2di4): 76(ptr) Variable UniformConstant 405 80: TypeSampledImage 75 406 82: 69(fvec3) ConstantComposite 42 57 28 407 85: TypeImage 46(int) 2D array sampled format:Unknown 408 86: TypePointer UniformConstant 85 409 87(g_tTex2du4): 86(ptr) Variable UniformConstant 410 90: TypeSampledImage 85 411 92: 6(float) Constant 1058642330 412 93: 6(float) Constant 1060320051 413 94: 69(fvec3) ConstantComposite 28 92 93 414 95: 71(ivec2) ConstantComposite 30 44 415 97: TypePointer Function 8(PS_OUTPUT) 416 99: 6(float) Constant 1065353216 417 100: 7(fvec4) ConstantComposite 99 99 99 99 418 102: TypePointer Function 6(float) 419 109: TypePointer Output 7(fvec4) 420 110(@entryPointOutput.Color): 109(ptr) Variable Output 421 113: TypePointer Output 6(float) 422 114(@entryPointOutput.Depth): 113(ptr) Variable Output 423 117(g_tTex1df4a): 15(ptr) Variable UniformConstant 424 4(main): 2 Function None 3 425 5: Label 426 107(flattenTemp): 97(ptr) Variable Function 427 108:8(PS_OUTPUT) FunctionCall 10(@main() 428 Store 107(flattenTemp) 108 429 111: 12(ptr) AccessChain 107(flattenTemp) 30 430 112: 7(fvec4) Load 111 431 Store 110(@entryPointOutput.Color) 112 432 115: 102(ptr) AccessChain 107(flattenTemp) 44 433 116: 6(float) Load 115 434 Store 114(@entryPointOutput.Depth) 116 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 84(txval22): 48(ptr) Variable Function 445 98(psout): 97(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) ImageSampleImplicitLod 23 27 Bias ConstOffset 30 28 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) ImageSampleImplicitLod 41 43 Bias ConstOffset 44 28 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) ImageSampleImplicitLod 56 58 Bias ConstOffset 59 28 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) ImageSampleImplicitLod 68 70 Bias ConstOffset 72 28 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 83: 32(ivec4) ImageSampleImplicitLod 81 82 Bias ConstOffset 72 28 470 Store 74(txval21) 83 471 88: 85 Load 87(g_tTex2du4) 472 89: 18 Load 20(g_sSamp) 473 91: 90 SampledImage 88 89 474 96: 47(ivec4) ImageSampleImplicitLod 91 94 Bias ConstOffset 95 28 475 Store 84(txval22) 96 476 101: 12(ptr) AccessChain 98(psout) 30 477 Store 101 100 478 103: 102(ptr) AccessChain 98(psout) 44 479 Store 103 99 480 104:8(PS_OUTPUT) Load 98(psout) 481 ReturnValue 104 482 FunctionEnd 483