1 hlsl.samplegrad.offset.dx10.frag
3 gl_FragCoord origin is upper left
5 0:28 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
6 0:28 Function Parameters:
9 0:31 move second child to first child ( temp 4-component vector of float)
10 0:31 'txval10' ( temp 4-component vector of float)
11 0:31 textureGradOffset ( temp 4-component vector of float)
12 0:31 Construct combined texture-sampler ( temp sampler1D)
13 0:31 'g_tTex1df4' (layout( binding=0) uniform texture1D)
14 0:31 'g_sSamp' (layout( binding=0) uniform sampler)
24 0:32 move second child to first child ( temp 4-component vector of int)
25 0:32 'txval11' ( temp 4-component vector of int)
26 0:32 textureGradOffset ( temp 4-component vector of int)
27 0:32 Construct combined texture-sampler ( temp isampler1D)
28 0:32 'g_tTex1di4' ( uniform itexture1D)
29 0:32 'g_sSamp' (layout( binding=0) uniform sampler)
39 0:33 move second child to first child ( temp 4-component vector of uint)
40 0:33 'txval12' ( temp 4-component vector of uint)
41 0:33 textureGradOffset ( temp 4-component vector of uint)
42 0:33 Construct combined texture-sampler ( temp usampler1D)
43 0:33 'g_tTex1du4' ( uniform utexture1D)
44 0:33 'g_sSamp' (layout( binding=0) uniform sampler)
54 0:35 move second child to first child ( temp 4-component vector of float)
55 0:35 'txval20' ( temp 4-component vector of float)
56 0:35 textureGradOffset ( temp 4-component vector of float)
57 0:35 Construct combined texture-sampler ( temp sampler2D)
58 0:35 'g_tTex2df4' ( uniform texture2D)
59 0:35 'g_sSamp' (layout( binding=0) uniform sampler)
73 0:36 move second child to first child ( temp 4-component vector of int)
74 0:36 'txval21' ( temp 4-component vector of int)
75 0:36 textureGradOffset ( temp 4-component vector of int)
76 0:36 Construct combined texture-sampler ( temp isampler2D)
77 0:36 'g_tTex2di4' ( uniform itexture2D)
78 0:36 'g_sSamp' (layout( binding=0) uniform sampler)
92 0:37 move second child to first child ( temp 4-component vector of uint)
93 0:37 'txval22' ( temp 4-component vector of uint)
94 0:37 textureGradOffset ( temp 4-component vector of uint)
95 0:37 Construct combined texture-sampler ( temp usampler2D)
96 0:37 'g_tTex2du4' ( uniform utexture2D)
97 0:37 'g_sSamp' (layout( binding=0) uniform sampler)
111 0:39 move second child to first child ( temp 4-component vector of float)
112 0:39 'txval30' ( temp 4-component vector of float)
113 0:39 textureGradOffset ( temp 4-component vector of float)
114 0:39 Construct combined texture-sampler ( temp sampler3D)
115 0:39 'g_tTex3df4' ( uniform texture3D)
116 0:39 'g_sSamp' (layout( binding=0) uniform sampler)
134 0:40 move second child to first child ( temp 4-component vector of int)
135 0:40 'txval31' ( temp 4-component vector of int)
136 0:40 textureGradOffset ( temp 4-component vector of int)
137 0:40 Construct combined texture-sampler ( temp isampler3D)
138 0:40 'g_tTex3di4' ( uniform itexture3D)
139 0:40 'g_sSamp' (layout( binding=0) uniform sampler)
157 0:41 move second child to first child ( temp 4-component vector of uint)
158 0:41 'txval32' ( temp 4-component vector of uint)
159 0:41 textureGradOffset ( temp 4-component vector of uint)
160 0:41 Construct combined texture-sampler ( temp usampler3D)
161 0:41 'g_tTex3du4' ( uniform utexture3D)
162 0:41 'g_sSamp' (layout( binding=0) uniform sampler)
179 0:45 move second child to first child ( temp 4-component vector of float)
180 0:45 Color: direct index for structure ( temp 4-component vector of float)
181 0:45 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
189 0:46 move second child to first child ( temp float)
190 0:46 Depth: direct index for structure ( temp float)
191 0:46 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
196 0:48 Branch: Return with expression
197 0:48 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
198 0:28 Function Definition: main( ( temp void)
199 0:28 Function Parameters:
202 0:28 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
203 0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
204 0:28 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
205 0:28 move second child to first child ( temp 4-component vector of float)
206 0:? 'Color' (layout( location=0) out 4-component vector of float)
207 0:28 Color: direct index for structure ( temp 4-component vector of float)
208 0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
211 0:28 move second child to first child ( temp float)
212 0:? 'Depth' ( out float FragDepth)
213 0:28 Depth: direct index for structure ( temp float)
214 0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
218 0:? 'g_sSamp' (layout( binding=0) uniform sampler)
219 0:? 'g_tTex1df4a' (layout( binding=1) uniform texture1D)
220 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1D)
221 0:? 'g_tTex1di4' ( uniform itexture1D)
222 0:? 'g_tTex1du4' ( uniform utexture1D)
223 0:? 'g_tTex2df4' ( uniform texture2D)
224 0:? 'g_tTex2di4' ( uniform itexture2D)
225 0:? 'g_tTex2du4' ( uniform utexture2D)
226 0:? 'g_tTex3df4' ( uniform texture3D)
227 0:? 'g_tTex3di4' ( uniform itexture3D)
228 0:? 'g_tTex3du4' ( uniform utexture3D)
229 0:? 'g_tTexcdf4' ( uniform textureCube)
230 0:? 'g_tTexcdi4' ( uniform itextureCube)
231 0:? 'g_tTexcdu4' ( uniform utextureCube)
232 0:? 'Color' (layout( location=0) out 4-component vector of float)
233 0:? 'Depth' ( out float FragDepth)
236 Linked fragment stage:
240 gl_FragCoord origin is upper left
242 0:28 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
243 0:28 Function Parameters:
246 0:31 move second child to first child ( temp 4-component vector of float)
247 0:31 'txval10' ( temp 4-component vector of float)
248 0:31 textureGradOffset ( temp 4-component vector of float)
249 0:31 Construct combined texture-sampler ( temp sampler1D)
250 0:31 'g_tTex1df4' (layout( binding=0) uniform texture1D)
251 0:31 'g_sSamp' (layout( binding=0) uniform sampler)
261 0:32 move second child to first child ( temp 4-component vector of int)
262 0:32 'txval11' ( temp 4-component vector of int)
263 0:32 textureGradOffset ( temp 4-component vector of int)
264 0:32 Construct combined texture-sampler ( temp isampler1D)
265 0:32 'g_tTex1di4' ( uniform itexture1D)
266 0:32 'g_sSamp' (layout( binding=0) uniform sampler)
276 0:33 move second child to first child ( temp 4-component vector of uint)
277 0:33 'txval12' ( temp 4-component vector of uint)
278 0:33 textureGradOffset ( temp 4-component vector of uint)
279 0:33 Construct combined texture-sampler ( temp usampler1D)
280 0:33 'g_tTex1du4' ( uniform utexture1D)
281 0:33 'g_sSamp' (layout( binding=0) uniform sampler)
291 0:35 move second child to first child ( temp 4-component vector of float)
292 0:35 'txval20' ( temp 4-component vector of float)
293 0:35 textureGradOffset ( temp 4-component vector of float)
294 0:35 Construct combined texture-sampler ( temp sampler2D)
295 0:35 'g_tTex2df4' ( uniform texture2D)
296 0:35 'g_sSamp' (layout( binding=0) uniform sampler)
310 0:36 move second child to first child ( temp 4-component vector of int)
311 0:36 'txval21' ( temp 4-component vector of int)
312 0:36 textureGradOffset ( temp 4-component vector of int)
313 0:36 Construct combined texture-sampler ( temp isampler2D)
314 0:36 'g_tTex2di4' ( uniform itexture2D)
315 0:36 'g_sSamp' (layout( binding=0) uniform sampler)
329 0:37 move second child to first child ( temp 4-component vector of uint)
330 0:37 'txval22' ( temp 4-component vector of uint)
331 0:37 textureGradOffset ( temp 4-component vector of uint)
332 0:37 Construct combined texture-sampler ( temp usampler2D)
333 0:37 'g_tTex2du4' ( uniform utexture2D)
334 0:37 'g_sSamp' (layout( binding=0) uniform sampler)
348 0:39 move second child to first child ( temp 4-component vector of float)
349 0:39 'txval30' ( temp 4-component vector of float)
350 0:39 textureGradOffset ( temp 4-component vector of float)
351 0:39 Construct combined texture-sampler ( temp sampler3D)
352 0:39 'g_tTex3df4' ( uniform texture3D)
353 0:39 'g_sSamp' (layout( binding=0) uniform sampler)
371 0:40 move second child to first child ( temp 4-component vector of int)
372 0:40 'txval31' ( temp 4-component vector of int)
373 0:40 textureGradOffset ( temp 4-component vector of int)
374 0:40 Construct combined texture-sampler ( temp isampler3D)
375 0:40 'g_tTex3di4' ( uniform itexture3D)
376 0:40 'g_sSamp' (layout( binding=0) uniform sampler)
394 0:41 move second child to first child ( temp 4-component vector of uint)
395 0:41 'txval32' ( temp 4-component vector of uint)
396 0:41 textureGradOffset ( temp 4-component vector of uint)
397 0:41 Construct combined texture-sampler ( temp usampler3D)
398 0:41 'g_tTex3du4' ( uniform utexture3D)
399 0:41 'g_sSamp' (layout( binding=0) uniform sampler)
416 0:45 move second child to first child ( temp 4-component vector of float)
417 0:45 Color: direct index for structure ( temp 4-component vector of float)
418 0:45 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
426 0:46 move second child to first child ( temp float)
427 0:46 Depth: direct index for structure ( temp float)
428 0:46 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
433 0:48 Branch: Return with expression
434 0:48 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
435 0:28 Function Definition: main( ( temp void)
436 0:28 Function Parameters:
439 0:28 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
440 0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
441 0:28 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
442 0:28 move second child to first child ( temp 4-component vector of float)
443 0:? 'Color' (layout( location=0) out 4-component vector of float)
444 0:28 Color: direct index for structure ( temp 4-component vector of float)
445 0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
448 0:28 move second child to first child ( temp float)
449 0:? 'Depth' ( out float FragDepth)
450 0:28 Depth: direct index for structure ( temp float)
451 0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
455 0:? 'g_sSamp' (layout( binding=0) uniform sampler)
456 0:? 'g_tTex1df4a' (layout( binding=1) uniform texture1D)
457 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1D)
458 0:? 'g_tTex1di4' ( uniform itexture1D)
459 0:? 'g_tTex1du4' ( uniform utexture1D)
460 0:? 'g_tTex2df4' ( uniform texture2D)
461 0:? 'g_tTex2di4' ( uniform itexture2D)
462 0:? 'g_tTex2du4' ( uniform utexture2D)
463 0:? 'g_tTex3df4' ( uniform texture3D)
464 0:? 'g_tTex3di4' ( uniform itexture3D)
465 0:? 'g_tTex3du4' ( uniform utexture3D)
466 0:? 'g_tTexcdf4' ( uniform textureCube)
467 0:? 'g_tTexcdi4' ( uniform itextureCube)
468 0:? 'g_tTexcdu4' ( uniform utextureCube)
469 0:? 'Color' (layout( location=0) out 4-component vector of float)
470 0:? 'Depth' ( out float FragDepth)
472 // Module Version 10000
473 // Generated by (magic number): 80001
474 // Id's are bound by 166
478 1: ExtInstImport "GLSL.std.450"
479 MemoryModel Logical GLSL450
480 EntryPoint Fragment 4 "main" 149 153
481 ExecutionMode 4 OriginUpperLeft
484 MemberName 8(PS_OUTPUT) 0 "Color"
485 MemberName 8(PS_OUTPUT) 1 "Depth"
503 Name 114 "g_tTex3di4"
505 Name 125 "g_tTex3du4"
507 Name 146 "flattenTemp"
510 Name 156 "g_tTex1df4a"
511 Name 159 "g_tTexcdf4"
512 Name 162 "g_tTexcdi4"
513 Name 165 "g_tTexcdu4"
514 Decorate 16(g_tTex1df4) DescriptorSet 0
515 Decorate 16(g_tTex1df4) Binding 0
516 Decorate 20(g_sSamp) DescriptorSet 0
517 Decorate 20(g_sSamp) Binding 0
518 Decorate 35(g_tTex1di4) DescriptorSet 0
519 Decorate 48(g_tTex1du4) DescriptorSet 0
520 Decorate 58(g_tTex2df4) DescriptorSet 0
521 Decorate 73(g_tTex2di4) DescriptorSet 0
522 Decorate 85(g_tTex2du4) DescriptorSet 0
523 Decorate 99(g_tTex3df4) DescriptorSet 0
524 Decorate 114(g_tTex3di4) DescriptorSet 0
525 Decorate 125(g_tTex3du4) DescriptorSet 0
526 Decorate 149(Color) Location 0
527 Decorate 153(Depth) BuiltIn FragDepth
528 Decorate 156(g_tTex1df4a) DescriptorSet 0
529 Decorate 156(g_tTex1df4a) Binding 1
530 Decorate 159(g_tTexcdf4) DescriptorSet 0
531 Decorate 162(g_tTexcdi4) DescriptorSet 0
532 Decorate 165(g_tTexcdu4) DescriptorSet 0
536 7: TypeVector 6(float) 4
537 8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
538 9: TypeFunction 8(PS_OUTPUT)
539 12: TypePointer Function 7(fvec4)
540 14: TypeImage 6(float) 1D sampled format:Unknown
541 15: TypePointer UniformConstant 14
542 16(g_tTex1df4): 15(ptr) Variable UniformConstant
544 19: TypePointer UniformConstant 18
545 20(g_sSamp): 19(ptr) Variable UniformConstant
546 22: TypeSampledImage 14
547 24: 6(float) Constant 1036831949
548 25: 6(float) Constant 1066192077
549 26: 6(float) Constant 1067030938
551 28: 27(int) Constant 1
552 30: TypeVector 27(int) 4
553 31: TypePointer Function 30(ivec4)
554 33: TypeImage 27(int) 1D sampled format:Unknown
555 34: TypePointer UniformConstant 33
556 35(g_tTex1di4): 34(ptr) Variable UniformConstant
557 38: TypeSampledImage 33
558 40: 6(float) Constant 1045220557
560 43: TypeVector 42(int) 4
561 44: TypePointer Function 43(ivec4)
562 46: TypeImage 42(int) 1D sampled format:Unknown
563 47: TypePointer UniformConstant 46
564 48(g_tTex1du4): 47(ptr) Variable UniformConstant
565 51: TypeSampledImage 46
566 53: 6(float) Constant 1050253722
567 56: TypeImage 6(float) 2D sampled format:Unknown
568 57: TypePointer UniformConstant 56
569 58(g_tTex2df4): 57(ptr) Variable UniformConstant
570 61: TypeSampledImage 56
571 63: TypeVector 6(float) 2
572 64: 63(fvec2) ConstantComposite 24 40
573 65: 63(fvec2) ConstantComposite 25 26
574 66: TypeVector 27(int) 2
575 67: 27(int) Constant 0
576 68: 66(ivec2) ConstantComposite 28 67
577 71: TypeImage 27(int) 2D sampled format:Unknown
578 72: TypePointer UniformConstant 71
579 73(g_tTex2di4): 72(ptr) Variable UniformConstant
580 76: TypeSampledImage 71
581 78: 6(float) Constant 1053609165
582 79: 63(fvec2) ConstantComposite 53 78
583 80: 66(ivec2) ConstantComposite 28 28
584 83: TypeImage 42(int) 2D sampled format:Unknown
585 84: TypePointer UniformConstant 83
586 85(g_tTex2du4): 84(ptr) Variable UniformConstant
587 88: TypeSampledImage 83
588 90: 6(float) Constant 1056964608
589 91: 6(float) Constant 1058642330
590 92: 63(fvec2) ConstantComposite 90 91
591 93: 27(int) Constant 4294967295
592 94: 66(ivec2) ConstantComposite 28 93
593 97: TypeImage 6(float) 3D sampled format:Unknown
594 98: TypePointer UniformConstant 97
595 99(g_tTex3df4): 98(ptr) Variable UniformConstant
596 102: TypeSampledImage 97
597 104: TypeVector 6(float) 3
598 105: 104(fvec3) ConstantComposite 24 40 53
599 106: 6(float) Constant 1067869798
600 107: 104(fvec3) ConstantComposite 25 26 106
601 108: TypeVector 27(int) 3
602 109: 108(ivec3) ConstantComposite 28 67 28
603 112: TypeImage 27(int) 3D sampled format:Unknown
604 113: TypePointer UniformConstant 112
605 114(g_tTex3di4): 113(ptr) Variable UniformConstant
606 117: TypeSampledImage 112
607 119: 104(fvec3) ConstantComposite 78 90 91
608 120: 108(ivec3) ConstantComposite 28 28 28
609 123: TypeImage 42(int) 3D sampled format:Unknown
610 124: TypePointer UniformConstant 123
611 125(g_tTex3du4): 124(ptr) Variable UniformConstant
612 128: TypeSampledImage 123
613 130: 6(float) Constant 1060320051
614 131: 6(float) Constant 1061997773
615 132: 6(float) Constant 1063675494
616 133: 104(fvec3) ConstantComposite 130 131 132
617 134: 108(ivec3) ConstantComposite 28 67 93
618 136: TypePointer Function 8(PS_OUTPUT)
619 138: 6(float) Constant 1065353216
620 139: 7(fvec4) ConstantComposite 138 138 138 138
621 141: TypePointer Function 6(float)
622 148: TypePointer Output 7(fvec4)
623 149(Color): 148(ptr) Variable Output
624 152: TypePointer Output 6(float)
625 153(Depth): 152(ptr) Variable Output
626 156(g_tTex1df4a): 15(ptr) Variable UniformConstant
627 157: TypeImage 6(float) Cube sampled format:Unknown
628 158: TypePointer UniformConstant 157
629 159(g_tTexcdf4): 158(ptr) Variable UniformConstant
630 160: TypeImage 27(int) Cube sampled format:Unknown
631 161: TypePointer UniformConstant 160
632 162(g_tTexcdi4): 161(ptr) Variable UniformConstant
633 163: TypeImage 42(int) Cube sampled format:Unknown
634 164: TypePointer UniformConstant 163
635 165(g_tTexcdu4): 164(ptr) Variable UniformConstant
636 4(main): 2 Function None 3
638 146(flattenTemp): 136(ptr) Variable Function
639 147:8(PS_OUTPUT) FunctionCall 10(@main()
640 Store 146(flattenTemp) 147
641 150: 12(ptr) AccessChain 146(flattenTemp) 67
642 151: 7(fvec4) Load 150
644 154: 141(ptr) AccessChain 146(flattenTemp) 28
645 155: 6(float) Load 154
649 10(@main():8(PS_OUTPUT) Function None 9
651 13(txval10): 12(ptr) Variable Function
652 32(txval11): 31(ptr) Variable Function
653 45(txval12): 44(ptr) Variable Function
654 55(txval20): 12(ptr) Variable Function
655 70(txval21): 31(ptr) Variable Function
656 82(txval22): 44(ptr) Variable Function
657 96(txval30): 12(ptr) Variable Function
658 111(txval31): 31(ptr) Variable Function
659 122(txval32): 44(ptr) Variable Function
660 137(psout): 136(ptr) Variable Function
661 17: 14 Load 16(g_tTex1df4)
662 21: 18 Load 20(g_sSamp)
663 23: 22 SampledImage 17 21
664 29: 7(fvec4) ImageSampleExplicitLod 23 24 Grad ConstOffset 25 26 28
666 36: 33 Load 35(g_tTex1di4)
667 37: 18 Load 20(g_sSamp)
668 39: 38 SampledImage 36 37
669 41: 30(ivec4) ImageSampleExplicitLod 39 40 Grad ConstOffset 25 26 28
671 49: 46 Load 48(g_tTex1du4)
672 50: 18 Load 20(g_sSamp)
673 52: 51 SampledImage 49 50
674 54: 43(ivec4) ImageSampleExplicitLod 52 53 Grad ConstOffset 25 26 28
676 59: 56 Load 58(g_tTex2df4)
677 60: 18 Load 20(g_sSamp)
678 62: 61 SampledImage 59 60
679 69: 7(fvec4) ImageSampleExplicitLod 62 64 Grad ConstOffset 64 65 68
681 74: 71 Load 73(g_tTex2di4)
682 75: 18 Load 20(g_sSamp)
683 77: 76 SampledImage 74 75
684 81: 30(ivec4) ImageSampleExplicitLod 77 79 Grad ConstOffset 64 65 80
686 86: 83 Load 85(g_tTex2du4)
687 87: 18 Load 20(g_sSamp)
688 89: 88 SampledImage 86 87
689 95: 43(ivec4) ImageSampleExplicitLod 89 92 Grad ConstOffset 64 65 94
691 100: 97 Load 99(g_tTex3df4)
692 101: 18 Load 20(g_sSamp)
693 103: 102 SampledImage 100 101
694 110: 7(fvec4) ImageSampleExplicitLod 103 105 Grad ConstOffset 107 107 109
695 Store 96(txval30) 110
696 115: 112 Load 114(g_tTex3di4)
697 116: 18 Load 20(g_sSamp)
698 118: 117 SampledImage 115 116
699 121: 30(ivec4) ImageSampleExplicitLod 118 119 Grad ConstOffset 107 107 120
700 Store 111(txval31) 121
701 126: 123 Load 125(g_tTex3du4)
702 127: 18 Load 20(g_sSamp)
703 129: 128 SampledImage 126 127
704 135: 43(ivec4) ImageSampleExplicitLod 129 133 Grad ConstOffset 107 107 134
705 Store 122(txval32) 135
706 140: 12(ptr) AccessChain 137(psout) 67
708 142: 141(ptr) AccessChain 137(psout) 28
710 143:8(PS_OUTPUT) Load 137(psout)