1hlsl.gather.basic.dx10.frag
2Shader version: 500
3gl_FragCoord origin is upper left
4using depth_any
50:? Sequence
60:29  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
70:29    Function Parameters:
80:?     Sequence
90:34      Sequence
100:34        move second child to first child ( temp 4-component vector of float)
110:34          'txval20' ( temp 4-component vector of float)
120:34          textureGather ( temp 4-component vector of float)
130:34            Construct combined texture-sampler ( temp sampler2D)
140:34              'g_tTex2df4' ( uniform texture2D)
150:34              'g_sSamp' (layout( binding=0) uniform sampler)
160:?             Constant:
170:?               0.100000
180:?               0.200000
190:35      Sequence
200:35        move second child to first child ( temp 4-component vector of int)
210:35          'txval21' ( temp 4-component vector of int)
220:35          textureGather ( temp 4-component vector of int)
230:35            Construct combined texture-sampler ( temp isampler2D)
240:35              'g_tTex2di4' ( uniform itexture2D)
250:35              'g_sSamp' (layout( binding=0) uniform sampler)
260:?             Constant:
270:?               0.300000
280:?               0.400000
290:36      Sequence
300:36        move second child to first child ( temp 4-component vector of uint)
310:36          'txval22' ( temp 4-component vector of uint)
320:36          textureGather ( temp 4-component vector of uint)
330:36            Construct combined texture-sampler ( temp usampler2D)
340:36              'g_tTex2du4' ( uniform utexture2D)
350:36              'g_sSamp' (layout( binding=0) uniform sampler)
360:?             Constant:
370:?               0.500000
380:?               0.600000
390:40      Sequence
400:40        move second child to first child ( temp 4-component vector of float)
410:40          'txval40' ( temp 4-component vector of float)
420:40          textureGather ( temp 4-component vector of float)
430:40            Construct combined texture-sampler ( temp samplerCube)
440:40              'g_tTexcdf4' ( uniform textureCube)
450:40              'g_sSamp' (layout( binding=0) uniform sampler)
460:?             Constant:
470:?               0.100000
480:?               0.200000
490:?               0.300000
500:41      Sequence
510:41        move second child to first child ( temp 4-component vector of int)
520:41          'txval41' ( temp 4-component vector of int)
530:41          textureGather ( temp 4-component vector of int)
540:41            Construct combined texture-sampler ( temp isamplerCube)
550:41              'g_tTexcdi4' ( uniform itextureCube)
560:41              'g_sSamp' (layout( binding=0) uniform sampler)
570:?             Constant:
580:?               0.400000
590:?               0.500000
600:?               0.600000
610:42      Sequence
620:42        move second child to first child ( temp 4-component vector of uint)
630:42          'txval42' ( temp 4-component vector of uint)
640:42          textureGather ( temp 4-component vector of uint)
650:42            Construct combined texture-sampler ( temp usamplerCube)
660:42              'g_tTexcdu4' ( uniform utextureCube)
670:42              'g_sSamp' (layout( binding=0) uniform sampler)
680:?             Constant:
690:?               0.700000
700:?               0.800000
710:?               0.900000
720:44      move second child to first child ( temp 4-component vector of float)
730:44        Color: direct index for structure ( temp 4-component vector of float)
740:44          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
750:44          Constant:
760:44            0 (const int)
770:44        Constant:
780:44          1.000000
790:44          1.000000
800:44          1.000000
810:44          1.000000
820:45      move second child to first child ( temp float)
830:45        Depth: direct index for structure ( temp float)
840:45          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
850:45          Constant:
860:45            1 (const int)
870:45        Constant:
880:45          1.000000
890:47      Branch: Return with expression
900:47        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
910:29  Function Definition: main( ( temp void)
920:29    Function Parameters:
930:?     Sequence
940:29      Sequence
950:29        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
960:29          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
970:29          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
980:29        move second child to first child ( temp 4-component vector of float)
990:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1000:29          Color: direct index for structure ( temp 4-component vector of float)
1010:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1020:29            Constant:
1030:29              0 (const int)
1040:29        move second child to first child ( temp float)
1050:?           '@entryPointOutput.Depth' ( out float FragDepth)
1060:29          Depth: direct index for structure ( temp float)
1070:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1080:29            Constant:
1090:29              1 (const int)
1100:?   Linker Objects
1110:?     'g_sSamp' (layout( binding=0) uniform sampler)
1120:?     'g_sSamp2d' ( uniform sampler)
1130:?     'g_tTex1df4a' (layout( binding=1) uniform texture1D)
1140:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
1150:?     'g_tTex1di4' ( uniform itexture1D)
1160:?     'g_tTex1du4' ( uniform utexture1D)
1170:?     'g_tTex2df4' ( uniform texture2D)
1180:?     'g_tTex2di4' ( uniform itexture2D)
1190:?     'g_tTex2du4' ( uniform utexture2D)
1200:?     'g_tTex3df4' ( uniform texture3D)
1210:?     'g_tTex3di4' ( uniform itexture3D)
1220:?     'g_tTex3du4' ( uniform utexture3D)
1230:?     'g_tTexcdf4' ( uniform textureCube)
1240:?     'g_tTexcdi4' ( uniform itextureCube)
1250:?     'g_tTexcdu4' ( uniform utextureCube)
1260:?     '@entryPointOutput.Depth' ( out float FragDepth)
1270:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
128
129
130Linked fragment stage:
131
132
133Shader version: 500
134gl_FragCoord origin is upper left
135using depth_any
1360:? Sequence
1370:29  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1380:29    Function Parameters:
1390:?     Sequence
1400:34      Sequence
1410:34        move second child to first child ( temp 4-component vector of float)
1420:34          'txval20' ( temp 4-component vector of float)
1430:34          textureGather ( temp 4-component vector of float)
1440:34            Construct combined texture-sampler ( temp sampler2D)
1450:34              'g_tTex2df4' ( uniform texture2D)
1460:34              'g_sSamp' (layout( binding=0) uniform sampler)
1470:?             Constant:
1480:?               0.100000
1490:?               0.200000
1500:35      Sequence
1510:35        move second child to first child ( temp 4-component vector of int)
1520:35          'txval21' ( temp 4-component vector of int)
1530:35          textureGather ( temp 4-component vector of int)
1540:35            Construct combined texture-sampler ( temp isampler2D)
1550:35              'g_tTex2di4' ( uniform itexture2D)
1560:35              'g_sSamp' (layout( binding=0) uniform sampler)
1570:?             Constant:
1580:?               0.300000
1590:?               0.400000
1600:36      Sequence
1610:36        move second child to first child ( temp 4-component vector of uint)
1620:36          'txval22' ( temp 4-component vector of uint)
1630:36          textureGather ( temp 4-component vector of uint)
1640:36            Construct combined texture-sampler ( temp usampler2D)
1650:36              'g_tTex2du4' ( uniform utexture2D)
1660:36              'g_sSamp' (layout( binding=0) uniform sampler)
1670:?             Constant:
1680:?               0.500000
1690:?               0.600000
1700:40      Sequence
1710:40        move second child to first child ( temp 4-component vector of float)
1720:40          'txval40' ( temp 4-component vector of float)
1730:40          textureGather ( temp 4-component vector of float)
1740:40            Construct combined texture-sampler ( temp samplerCube)
1750:40              'g_tTexcdf4' ( uniform textureCube)
1760:40              'g_sSamp' (layout( binding=0) uniform sampler)
1770:?             Constant:
1780:?               0.100000
1790:?               0.200000
1800:?               0.300000
1810:41      Sequence
1820:41        move second child to first child ( temp 4-component vector of int)
1830:41          'txval41' ( temp 4-component vector of int)
1840:41          textureGather ( temp 4-component vector of int)
1850:41            Construct combined texture-sampler ( temp isamplerCube)
1860:41              'g_tTexcdi4' ( uniform itextureCube)
1870:41              'g_sSamp' (layout( binding=0) uniform sampler)
1880:?             Constant:
1890:?               0.400000
1900:?               0.500000
1910:?               0.600000
1920:42      Sequence
1930:42        move second child to first child ( temp 4-component vector of uint)
1940:42          'txval42' ( temp 4-component vector of uint)
1950:42          textureGather ( temp 4-component vector of uint)
1960:42            Construct combined texture-sampler ( temp usamplerCube)
1970:42              'g_tTexcdu4' ( uniform utextureCube)
1980:42              'g_sSamp' (layout( binding=0) uniform sampler)
1990:?             Constant:
2000:?               0.700000
2010:?               0.800000
2020:?               0.900000
2030:44      move second child to first child ( temp 4-component vector of float)
2040:44        Color: direct index for structure ( temp 4-component vector of float)
2050:44          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2060:44          Constant:
2070:44            0 (const int)
2080:44        Constant:
2090:44          1.000000
2100:44          1.000000
2110:44          1.000000
2120:44          1.000000
2130:45      move second child to first child ( temp float)
2140:45        Depth: direct index for structure ( temp float)
2150:45          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2160:45          Constant:
2170:45            1 (const int)
2180:45        Constant:
2190:45          1.000000
2200:47      Branch: Return with expression
2210:47        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2220:29  Function Definition: main( ( temp void)
2230:29    Function Parameters:
2240:?     Sequence
2250:29      Sequence
2260:29        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2270:29          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2280:29          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2290:29        move second child to first child ( temp 4-component vector of float)
2300:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
2310:29          Color: direct index for structure ( temp 4-component vector of float)
2320:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2330:29            Constant:
2340:29              0 (const int)
2350:29        move second child to first child ( temp float)
2360:?           '@entryPointOutput.Depth' ( out float FragDepth)
2370:29          Depth: direct index for structure ( temp float)
2380:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2390:29            Constant:
2400:29              1 (const int)
2410:?   Linker Objects
2420:?     'g_sSamp' (layout( binding=0) uniform sampler)
2430:?     'g_sSamp2d' ( uniform sampler)
2440:?     'g_tTex1df4a' (layout( binding=1) uniform texture1D)
2450:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
2460:?     'g_tTex1di4' ( uniform itexture1D)
2470:?     'g_tTex1du4' ( uniform utexture1D)
2480:?     'g_tTex2df4' ( uniform texture2D)
2490:?     'g_tTex2di4' ( uniform itexture2D)
2500:?     'g_tTex2du4' ( uniform utexture2D)
2510:?     'g_tTex3df4' ( uniform texture3D)
2520:?     'g_tTex3di4' ( uniform itexture3D)
2530:?     'g_tTex3du4' ( uniform utexture3D)
2540:?     'g_tTexcdf4' ( uniform textureCube)
2550:?     'g_tTexcdi4' ( uniform itextureCube)
2560:?     'g_tTexcdu4' ( uniform utextureCube)
2570:?     '@entryPointOutput.Depth' ( out float FragDepth)
2580:?     '@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 20(g_sSamp) DescriptorSet 0
304                              Decorate 20(g_sSamp) Binding 0
305                              Decorate 36(g_tTex2di4) DescriptorSet 0
306                              Decorate 51(g_tTex2du4) DescriptorSet 0
307                              Decorate 63(g_tTexcdf4) DescriptorSet 0
308                              Decorate 74(g_tTexcdi4) DescriptorSet 0
309                              Decorate 84(g_tTexcdu4) DescriptorSet 0
310                              Decorate 108(@entryPointOutput.Color) Location 0
311                              Decorate 112(@entryPointOutput.Depth) BuiltIn FragDepth
312                              Decorate 115(g_sSamp2d) DescriptorSet 0
313                              Decorate 118(g_tTex1df4a) DescriptorSet 0
314                              Decorate 118(g_tTex1df4a) Binding 1
315                              Decorate 119(g_tTex1df4) DescriptorSet 0
316                              Decorate 119(g_tTex1df4) Binding 0
317                              Decorate 122(g_tTex1di4) DescriptorSet 0
318                              Decorate 125(g_tTex1du4) DescriptorSet 0
319                              Decorate 128(g_tTex3df4) DescriptorSet 0
320                              Decorate 131(g_tTex3di4) DescriptorSet 0
321                              Decorate 134(g_tTex3du4) DescriptorSet 0
322               2:             TypeVoid
323               3:             TypeFunction 2
324               6:             TypeFloat 32
325               7:             TypeVector 6(float) 4
326    8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
327               9:             TypeFunction 8(PS_OUTPUT)
328              12:             TypePointer Function 7(fvec4)
329              14:             TypeImage 6(float) 2D sampled format:Unknown
330              15:             TypePointer UniformConstant 14
331  16(g_tTex2df4):     15(ptr) Variable UniformConstant
332              18:             TypeSampler
333              19:             TypePointer UniformConstant 18
334     20(g_sSamp):     19(ptr) Variable UniformConstant
335              22:             TypeSampledImage 14
336              24:             TypeVector 6(float) 2
337              25:    6(float) Constant 1036831949
338              26:    6(float) Constant 1045220557
339              27:   24(fvec2) ConstantComposite 25 26
340              28:             TypeInt 32 1
341              29:     28(int) Constant 0
342              31:             TypeVector 28(int) 4
343              32:             TypePointer Function 31(ivec4)
344              34:             TypeImage 28(int) 2D sampled format:Unknown
345              35:             TypePointer UniformConstant 34
346  36(g_tTex2di4):     35(ptr) Variable UniformConstant
347              39:             TypeSampledImage 34
348              41:    6(float) Constant 1050253722
349              42:    6(float) Constant 1053609165
350              43:   24(fvec2) ConstantComposite 41 42
351              45:             TypeInt 32 0
352              46:             TypeVector 45(int) 4
353              47:             TypePointer Function 46(ivec4)
354              49:             TypeImage 45(int) 2D sampled format:Unknown
355              50:             TypePointer UniformConstant 49
356  51(g_tTex2du4):     50(ptr) Variable UniformConstant
357              54:             TypeSampledImage 49
358              56:    6(float) Constant 1056964608
359              57:    6(float) Constant 1058642330
360              58:   24(fvec2) ConstantComposite 56 57
361              61:             TypeImage 6(float) Cube sampled format:Unknown
362              62:             TypePointer UniformConstant 61
363  63(g_tTexcdf4):     62(ptr) Variable UniformConstant
364              66:             TypeSampledImage 61
365              68:             TypeVector 6(float) 3
366              69:   68(fvec3) ConstantComposite 25 26 41
367              72:             TypeImage 28(int) Cube sampled format:Unknown
368              73:             TypePointer UniformConstant 72
369  74(g_tTexcdi4):     73(ptr) Variable UniformConstant
370              77:             TypeSampledImage 72
371              79:   68(fvec3) ConstantComposite 42 56 57
372              82:             TypeImage 45(int) Cube sampled format:Unknown
373              83:             TypePointer UniformConstant 82
374  84(g_tTexcdu4):     83(ptr) Variable UniformConstant
375              87:             TypeSampledImage 82
376              89:    6(float) Constant 1060320051
377              90:    6(float) Constant 1061997773
378              91:    6(float) Constant 1063675494
379              92:   68(fvec3) ConstantComposite 89 90 91
380              94:             TypePointer Function 8(PS_OUTPUT)
381              96:    6(float) Constant 1065353216
382              97:    7(fvec4) ConstantComposite 96 96 96 96
383              99:     28(int) Constant 1
384             100:             TypePointer Function 6(float)
385             107:             TypePointer Output 7(fvec4)
386108(@entryPointOutput.Color):    107(ptr) Variable Output
387             111:             TypePointer Output 6(float)
388112(@entryPointOutput.Depth):    111(ptr) Variable Output
389  115(g_sSamp2d):     19(ptr) Variable UniformConstant
390             116:             TypeImage 6(float) 1D sampled format:Unknown
391             117:             TypePointer UniformConstant 116
392118(g_tTex1df4a):    117(ptr) Variable UniformConstant
393 119(g_tTex1df4):    117(ptr) Variable UniformConstant
394             120:             TypeImage 28(int) 1D sampled format:Unknown
395             121:             TypePointer UniformConstant 120
396 122(g_tTex1di4):    121(ptr) Variable UniformConstant
397             123:             TypeImage 45(int) 1D sampled format:Unknown
398             124:             TypePointer UniformConstant 123
399 125(g_tTex1du4):    124(ptr) Variable UniformConstant
400             126:             TypeImage 6(float) 3D sampled format:Unknown
401             127:             TypePointer UniformConstant 126
402 128(g_tTex3df4):    127(ptr) Variable UniformConstant
403             129:             TypeImage 28(int) 3D sampled format:Unknown
404             130:             TypePointer UniformConstant 129
405 131(g_tTex3di4):    130(ptr) Variable UniformConstant
406             132:             TypeImage 45(int) 3D sampled format:Unknown
407             133:             TypePointer UniformConstant 132
408 134(g_tTex3du4):    133(ptr) Variable UniformConstant
409         4(main):           2 Function None 3
410               5:             Label
411105(flattenTemp):     94(ptr) Variable Function
412             106:8(PS_OUTPUT) FunctionCall 10(@main()
413                              Store 105(flattenTemp) 106
414             109:     12(ptr) AccessChain 105(flattenTemp) 29
415             110:    7(fvec4) Load 109
416                              Store 108(@entryPointOutput.Color) 110
417             113:    100(ptr) AccessChain 105(flattenTemp) 99
418             114:    6(float) Load 113
419                              Store 112(@entryPointOutput.Depth) 114
420                              Return
421                              FunctionEnd
422      10(@main():8(PS_OUTPUT) Function None 9
423              11:             Label
424     13(txval20):     12(ptr) Variable Function
425     33(txval21):     32(ptr) Variable Function
426     48(txval22):     47(ptr) Variable Function
427     60(txval40):     12(ptr) Variable Function
428     71(txval41):     32(ptr) Variable Function
429     81(txval42):     47(ptr) Variable Function
430       95(psout):     94(ptr) Variable Function
431              17:          14 Load 16(g_tTex2df4)
432              21:          18 Load 20(g_sSamp)
433              23:          22 SampledImage 17 21
434              30:    7(fvec4) ImageGather 23 27 29
435                              Store 13(txval20) 30
436              37:          34 Load 36(g_tTex2di4)
437              38:          18 Load 20(g_sSamp)
438              40:          39 SampledImage 37 38
439              44:   31(ivec4) ImageGather 40 43 29
440                              Store 33(txval21) 44
441              52:          49 Load 51(g_tTex2du4)
442              53:          18 Load 20(g_sSamp)
443              55:          54 SampledImage 52 53
444              59:   46(ivec4) ImageGather 55 58 29
445                              Store 48(txval22) 59
446              64:          61 Load 63(g_tTexcdf4)
447              65:          18 Load 20(g_sSamp)
448              67:          66 SampledImage 64 65
449              70:    7(fvec4) ImageGather 67 69 29
450                              Store 60(txval40) 70
451              75:          72 Load 74(g_tTexcdi4)
452              76:          18 Load 20(g_sSamp)
453              78:          77 SampledImage 75 76
454              80:   31(ivec4) ImageGather 78 79 29
455                              Store 71(txval41) 80
456              85:          82 Load 84(g_tTexcdu4)
457              86:          18 Load 20(g_sSamp)
458              88:          87 SampledImage 85 86
459              93:   46(ivec4) ImageGather 88 92 29
460                              Store 81(txval42) 93
461              98:     12(ptr) AccessChain 95(psout) 29
462                              Store 98 97
463             101:    100(ptr) AccessChain 95(psout) 99
464                              Store 101 96
465             102:8(PS_OUTPUT) Load 95(psout)
466                              ReturnValue 102
467                              FunctionEnd
468