• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.gather.array.dx10.frag
2Shader version: 500
3gl_FragCoord origin is upper left
4using depth_any
50:? Sequence
60:24  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
70:24    Function Parameters:
80:?     Sequence
90:29      Sequence
100:29        move second child to first child ( temp 4-component vector of float)
110:29          'txval20' ( temp 4-component vector of float)
120:29          textureGather ( temp 4-component vector of float)
130:29            Construct combined texture-sampler ( temp sampler2DArray)
140:29              'g_tTex2df4a' ( uniform texture2DArray)
150:29              'g_sSamp' (layout( binding=0) uniform sampler)
160:29            Constant:
170:29              0.100000
180:29              0.200000
190:29              0.300000
200:30      Sequence
210:30        move second child to first child ( temp 4-component vector of int)
220:30          'txval21' ( temp 4-component vector of int)
230:30          textureGather ( temp 4-component vector of int)
240:30            Construct combined texture-sampler ( temp isampler2DArray)
250:30              'g_tTex2di4a' ( uniform itexture2DArray)
260:30              'g_sSamp' (layout( binding=0) uniform sampler)
270:30            Constant:
280:30              0.300000
290:30              0.400000
300:30              0.500000
310:31      Sequence
320:31        move second child to first child ( temp 4-component vector of uint)
330:31          'txval22' ( temp 4-component vector of uint)
340:31          textureGather ( temp 4-component vector of uint)
350:31            Construct combined texture-sampler ( temp usampler2DArray)
360:31              'g_tTex2du4a' ( uniform utexture2DArray)
370:31              'g_sSamp' (layout( binding=0) uniform sampler)
380:31            Constant:
390:31              0.500000
400:31              0.600000
410:31              0.700000
420:35      Sequence
430:35        move second child to first child ( temp 4-component vector of float)
440:35          'txval40' ( temp 4-component vector of float)
450:35          textureGather ( temp 4-component vector of float)
460:35            Construct combined texture-sampler ( temp samplerCubeArray)
470:35              'g_tTexcdf4a' ( uniform textureCubeArray)
480:35              'g_sSamp' (layout( binding=0) uniform sampler)
490:35            Constant:
500:35              0.100000
510:35              0.200000
520:35              0.300000
530:35              0.400000
540:36      Sequence
550:36        move second child to first child ( temp 4-component vector of int)
560:36          'txval41' ( temp 4-component vector of int)
570:36          textureGather ( temp 4-component vector of int)
580:36            Construct combined texture-sampler ( temp isamplerCubeArray)
590:36              'g_tTexcdi4a' ( uniform itextureCubeArray)
600:36              'g_sSamp' (layout( binding=0) uniform sampler)
610:36            Constant:
620:36              0.400000
630:36              0.500000
640:36              0.600000
650:36              0.700000
660:37      Sequence
670:37        move second child to first child ( temp 4-component vector of uint)
680:37          'txval42' ( temp 4-component vector of uint)
690:37          textureGather ( temp 4-component vector of uint)
700:37            Construct combined texture-sampler ( temp usamplerCubeArray)
710:37              'g_tTexcdu4a' ( uniform utextureCubeArray)
720:37              'g_sSamp' (layout( binding=0) uniform sampler)
730:37            Constant:
740:37              0.700000
750:37              0.800000
760:37              0.900000
770:37              1.000000
780:39      move second child to first child ( temp 4-component vector of float)
790:39        Color: direct index for structure ( temp 4-component vector of float)
800:39          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
810:39          Constant:
820:39            0 (const int)
830:39        Constant:
840:39          1.000000
850:39          1.000000
860:39          1.000000
870:39          1.000000
880:40      move second child to first child ( temp float)
890:40        Depth: direct index for structure ( temp float)
900:40          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
910:40          Constant:
920:40            1 (const int)
930:40        Constant:
940:40          1.000000
950:42      Branch: Return with expression
960:42        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
970:24  Function Definition: main( ( temp void)
980:24    Function Parameters:
990:?     Sequence
1000:24      Sequence
1010:24        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1020:24          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1030:24          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1040:24        move second child to first child ( temp 4-component vector of float)
1050:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1060:24          Color: direct index for structure ( temp 4-component vector of float)
1070:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1080:24            Constant:
1090:24              0 (const int)
1100:24        move second child to first child ( temp float)
1110:?           '@entryPointOutput.Depth' ( out float FragDepth)
1120:24          Depth: direct index for structure ( temp float)
1130:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1140:24            Constant:
1150:24              1 (const int)
1160:?   Linker Objects
1170:?     'g_sSamp' (layout( binding=0) uniform sampler)
1180:?     'g_tTex1df4a' (layout( binding=1) uniform texture1DArray)
1190:?     'g_tTex1df4' (layout( binding=0) uniform texture1DArray)
1200:?     'g_tTex1di4a' ( uniform itexture1DArray)
1210:?     'g_tTex1du4a' ( uniform utexture1DArray)
1220:?     'g_tTex2df4a' ( uniform texture2DArray)
1230:?     'g_tTex2di4a' ( uniform itexture2DArray)
1240:?     'g_tTex2du4a' ( uniform utexture2DArray)
1250:?     'g_tTexcdf4a' ( uniform textureCubeArray)
1260:?     'g_tTexcdi4a' ( uniform itextureCubeArray)
1270:?     'g_tTexcdu4a' ( uniform utextureCubeArray)
1280:?     '@entryPointOutput.Depth' ( out float FragDepth)
1290:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
130
131
132Linked fragment stage:
133
134
135Shader version: 500
136gl_FragCoord origin is upper left
137using depth_any
1380:? Sequence
1390:24  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1400:24    Function Parameters:
1410:?     Sequence
1420:29      Sequence
1430:29        move second child to first child ( temp 4-component vector of float)
1440:29          'txval20' ( temp 4-component vector of float)
1450:29          textureGather ( temp 4-component vector of float)
1460:29            Construct combined texture-sampler ( temp sampler2DArray)
1470:29              'g_tTex2df4a' ( uniform texture2DArray)
1480:29              'g_sSamp' (layout( binding=0) uniform sampler)
1490:29            Constant:
1500:29              0.100000
1510:29              0.200000
1520:29              0.300000
1530:30      Sequence
1540:30        move second child to first child ( temp 4-component vector of int)
1550:30          'txval21' ( temp 4-component vector of int)
1560:30          textureGather ( temp 4-component vector of int)
1570:30            Construct combined texture-sampler ( temp isampler2DArray)
1580:30              'g_tTex2di4a' ( uniform itexture2DArray)
1590:30              'g_sSamp' (layout( binding=0) uniform sampler)
1600:30            Constant:
1610:30              0.300000
1620:30              0.400000
1630:30              0.500000
1640:31      Sequence
1650:31        move second child to first child ( temp 4-component vector of uint)
1660:31          'txval22' ( temp 4-component vector of uint)
1670:31          textureGather ( temp 4-component vector of uint)
1680:31            Construct combined texture-sampler ( temp usampler2DArray)
1690:31              'g_tTex2du4a' ( uniform utexture2DArray)
1700:31              'g_sSamp' (layout( binding=0) uniform sampler)
1710:31            Constant:
1720:31              0.500000
1730:31              0.600000
1740:31              0.700000
1750:35      Sequence
1760:35        move second child to first child ( temp 4-component vector of float)
1770:35          'txval40' ( temp 4-component vector of float)
1780:35          textureGather ( temp 4-component vector of float)
1790:35            Construct combined texture-sampler ( temp samplerCubeArray)
1800:35              'g_tTexcdf4a' ( uniform textureCubeArray)
1810:35              'g_sSamp' (layout( binding=0) uniform sampler)
1820:35            Constant:
1830:35              0.100000
1840:35              0.200000
1850:35              0.300000
1860:35              0.400000
1870:36      Sequence
1880:36        move second child to first child ( temp 4-component vector of int)
1890:36          'txval41' ( temp 4-component vector of int)
1900:36          textureGather ( temp 4-component vector of int)
1910:36            Construct combined texture-sampler ( temp isamplerCubeArray)
1920:36              'g_tTexcdi4a' ( uniform itextureCubeArray)
1930:36              'g_sSamp' (layout( binding=0) uniform sampler)
1940:36            Constant:
1950:36              0.400000
1960:36              0.500000
1970:36              0.600000
1980:36              0.700000
1990:37      Sequence
2000:37        move second child to first child ( temp 4-component vector of uint)
2010:37          'txval42' ( temp 4-component vector of uint)
2020:37          textureGather ( temp 4-component vector of uint)
2030:37            Construct combined texture-sampler ( temp usamplerCubeArray)
2040:37              'g_tTexcdu4a' ( uniform utextureCubeArray)
2050:37              'g_sSamp' (layout( binding=0) uniform sampler)
2060:37            Constant:
2070:37              0.700000
2080:37              0.800000
2090:37              0.900000
2100:37              1.000000
2110:39      move second child to first child ( temp 4-component vector of float)
2120:39        Color: direct index for structure ( temp 4-component vector of float)
2130:39          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2140:39          Constant:
2150:39            0 (const int)
2160:39        Constant:
2170:39          1.000000
2180:39          1.000000
2190:39          1.000000
2200:39          1.000000
2210:40      move second child to first child ( temp float)
2220:40        Depth: direct index for structure ( temp float)
2230:40          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2240:40          Constant:
2250:40            1 (const int)
2260:40        Constant:
2270:40          1.000000
2280:42      Branch: Return with expression
2290:42        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2300:24  Function Definition: main( ( temp void)
2310:24    Function Parameters:
2320:?     Sequence
2330:24      Sequence
2340:24        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2350:24          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2360:24          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2370:24        move second child to first child ( temp 4-component vector of float)
2380:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
2390:24          Color: direct index for structure ( temp 4-component vector of float)
2400:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2410:24            Constant:
2420:24              0 (const int)
2430:24        move second child to first child ( temp float)
2440:?           '@entryPointOutput.Depth' ( out float FragDepth)
2450:24          Depth: direct index for structure ( temp float)
2460:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2470:24            Constant:
2480:24              1 (const int)
2490:?   Linker Objects
2500:?     'g_sSamp' (layout( binding=0) uniform sampler)
2510:?     'g_tTex1df4a' (layout( binding=1) uniform texture1DArray)
2520:?     'g_tTex1df4' (layout( binding=0) uniform texture1DArray)
2530:?     'g_tTex1di4a' ( uniform itexture1DArray)
2540:?     'g_tTex1du4a' ( uniform utexture1DArray)
2550:?     'g_tTex2df4a' ( uniform texture2DArray)
2560:?     'g_tTex2di4a' ( uniform itexture2DArray)
2570:?     'g_tTex2du4a' ( uniform utexture2DArray)
2580:?     'g_tTexcdf4a' ( uniform textureCubeArray)
2590:?     'g_tTexcdi4a' ( uniform itextureCubeArray)
2600:?     'g_tTexcdu4a' ( uniform utextureCubeArray)
2610:?     '@entryPointOutput.Depth' ( out float FragDepth)
2620:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
263
264// Module Version 10000
265// Generated by (magic number): 8000a
266// Id's are bound by 124
267
268                              Capability Shader
269                              Capability Sampled1D
270                              Capability SampledCubeArray
271               1:             ExtInstImport  "GLSL.std.450"
272                              MemoryModel Logical GLSL450
273                              EntryPoint Fragment 4  "main" 107 111
274                              ExecutionMode 4 OriginUpperLeft
275                              ExecutionMode 4 DepthReplacing
276                              Source HLSL 500
277                              Name 4  "main"
278                              Name 8  "PS_OUTPUT"
279                              MemberName 8(PS_OUTPUT) 0  "Color"
280                              MemberName 8(PS_OUTPUT) 1  "Depth"
281                              Name 10  "@main("
282                              Name 13  "txval20"
283                              Name 16  "g_tTex2df4a"
284                              Name 20  "g_sSamp"
285                              Name 34  "txval21"
286                              Name 37  "g_tTex2di4a"
287                              Name 49  "txval22"
288                              Name 52  "g_tTex2du4a"
289                              Name 61  "txval40"
290                              Name 64  "g_tTexcdf4a"
291                              Name 71  "txval41"
292                              Name 74  "g_tTexcdi4a"
293                              Name 81  "txval42"
294                              Name 84  "g_tTexcdu4a"
295                              Name 95  "psout"
296                              Name 104  "flattenTemp"
297                              Name 107  "@entryPointOutput.Color"
298                              Name 111  "@entryPointOutput.Depth"
299                              Name 116  "g_tTex1df4a"
300                              Name 117  "g_tTex1df4"
301                              Name 120  "g_tTex1di4a"
302                              Name 123  "g_tTex1du4a"
303                              Decorate 16(g_tTex2df4a) DescriptorSet 0
304                              Decorate 16(g_tTex2df4a) Binding 2
305                              Decorate 20(g_sSamp) DescriptorSet 0
306                              Decorate 20(g_sSamp) Binding 0
307                              Decorate 37(g_tTex2di4a) DescriptorSet 0
308                              Decorate 37(g_tTex2di4a) Binding 3
309                              Decorate 52(g_tTex2du4a) DescriptorSet 0
310                              Decorate 52(g_tTex2du4a) Binding 4
311                              Decorate 64(g_tTexcdf4a) DescriptorSet 0
312                              Decorate 64(g_tTexcdf4a) Binding 5
313                              Decorate 74(g_tTexcdi4a) DescriptorSet 0
314                              Decorate 74(g_tTexcdi4a) Binding 6
315                              Decorate 84(g_tTexcdu4a) DescriptorSet 0
316                              Decorate 84(g_tTexcdu4a) Binding 7
317                              Decorate 107(@entryPointOutput.Color) Location 0
318                              Decorate 111(@entryPointOutput.Depth) BuiltIn FragDepth
319                              Decorate 116(g_tTex1df4a) DescriptorSet 0
320                              Decorate 116(g_tTex1df4a) Binding 1
321                              Decorate 117(g_tTex1df4) DescriptorSet 0
322                              Decorate 117(g_tTex1df4) Binding 0
323                              Decorate 120(g_tTex1di4a) DescriptorSet 0
324                              Decorate 120(g_tTex1di4a) Binding 0
325                              Decorate 123(g_tTex1du4a) DescriptorSet 0
326                              Decorate 123(g_tTex1du4a) Binding 0
327               2:             TypeVoid
328               3:             TypeFunction 2
329               6:             TypeFloat 32
330               7:             TypeVector 6(float) 4
331    8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
332               9:             TypeFunction 8(PS_OUTPUT)
333              12:             TypePointer Function 7(fvec4)
334              14:             TypeImage 6(float) 2D array sampled format:Unknown
335              15:             TypePointer UniformConstant 14
336 16(g_tTex2df4a):     15(ptr) Variable UniformConstant
337              18:             TypeSampler
338              19:             TypePointer UniformConstant 18
339     20(g_sSamp):     19(ptr) Variable UniformConstant
340              22:             TypeSampledImage 14
341              24:             TypeVector 6(float) 3
342              25:    6(float) Constant 1036831949
343              26:    6(float) Constant 1045220557
344              27:    6(float) Constant 1050253722
345              28:   24(fvec3) ConstantComposite 25 26 27
346              29:             TypeInt 32 1
347              30:     29(int) Constant 0
348              32:             TypeVector 29(int) 4
349              33:             TypePointer Function 32(ivec4)
350              35:             TypeImage 29(int) 2D array sampled format:Unknown
351              36:             TypePointer UniformConstant 35
352 37(g_tTex2di4a):     36(ptr) Variable UniformConstant
353              40:             TypeSampledImage 35
354              42:    6(float) Constant 1053609165
355              43:    6(float) Constant 1056964608
356              44:   24(fvec3) ConstantComposite 27 42 43
357              46:             TypeInt 32 0
358              47:             TypeVector 46(int) 4
359              48:             TypePointer Function 47(ivec4)
360              50:             TypeImage 46(int) 2D array sampled format:Unknown
361              51:             TypePointer UniformConstant 50
362 52(g_tTex2du4a):     51(ptr) Variable UniformConstant
363              55:             TypeSampledImage 50
364              57:    6(float) Constant 1058642330
365              58:    6(float) Constant 1060320051
366              59:   24(fvec3) ConstantComposite 43 57 58
367              62:             TypeImage 6(float) Cube array sampled format:Unknown
368              63:             TypePointer UniformConstant 62
369 64(g_tTexcdf4a):     63(ptr) Variable UniformConstant
370              67:             TypeSampledImage 62
371              69:    7(fvec4) ConstantComposite 25 26 27 42
372              72:             TypeImage 29(int) Cube array sampled format:Unknown
373              73:             TypePointer UniformConstant 72
374 74(g_tTexcdi4a):     73(ptr) Variable UniformConstant
375              77:             TypeSampledImage 72
376              79:    7(fvec4) ConstantComposite 42 43 57 58
377              82:             TypeImage 46(int) Cube array sampled format:Unknown
378              83:             TypePointer UniformConstant 82
379 84(g_tTexcdu4a):     83(ptr) Variable UniformConstant
380              87:             TypeSampledImage 82
381              89:    6(float) Constant 1061997773
382              90:    6(float) Constant 1063675494
383              91:    6(float) Constant 1065353216
384              92:    7(fvec4) ConstantComposite 58 89 90 91
385              94:             TypePointer Function 8(PS_OUTPUT)
386              96:    7(fvec4) ConstantComposite 91 91 91 91
387              98:     29(int) Constant 1
388              99:             TypePointer Function 6(float)
389             106:             TypePointer Output 7(fvec4)
390107(@entryPointOutput.Color):    106(ptr) Variable Output
391             110:             TypePointer Output 6(float)
392111(@entryPointOutput.Depth):    110(ptr) Variable Output
393             114:             TypeImage 6(float) 1D array sampled format:Unknown
394             115:             TypePointer UniformConstant 114
395116(g_tTex1df4a):    115(ptr) Variable UniformConstant
396 117(g_tTex1df4):    115(ptr) Variable UniformConstant
397             118:             TypeImage 29(int) 1D array sampled format:Unknown
398             119:             TypePointer UniformConstant 118
399120(g_tTex1di4a):    119(ptr) Variable UniformConstant
400             121:             TypeImage 46(int) 1D array sampled format:Unknown
401             122:             TypePointer UniformConstant 121
402123(g_tTex1du4a):    122(ptr) Variable UniformConstant
403         4(main):           2 Function None 3
404               5:             Label
405104(flattenTemp):     94(ptr) Variable Function
406             105:8(PS_OUTPUT) FunctionCall 10(@main()
407                              Store 104(flattenTemp) 105
408             108:     12(ptr) AccessChain 104(flattenTemp) 30
409             109:    7(fvec4) Load 108
410                              Store 107(@entryPointOutput.Color) 109
411             112:     99(ptr) AccessChain 104(flattenTemp) 98
412             113:    6(float) Load 112
413                              Store 111(@entryPointOutput.Depth) 113
414                              Return
415                              FunctionEnd
416      10(@main():8(PS_OUTPUT) Function None 9
417              11:             Label
418     13(txval20):     12(ptr) Variable Function
419     34(txval21):     33(ptr) Variable Function
420     49(txval22):     48(ptr) Variable Function
421     61(txval40):     12(ptr) Variable Function
422     71(txval41):     33(ptr) Variable Function
423     81(txval42):     48(ptr) Variable Function
424       95(psout):     94(ptr) Variable Function
425              17:          14 Load 16(g_tTex2df4a)
426              21:          18 Load 20(g_sSamp)
427              23:          22 SampledImage 17 21
428              31:    7(fvec4) ImageGather 23 28 30
429                              Store 13(txval20) 31
430              38:          35 Load 37(g_tTex2di4a)
431              39:          18 Load 20(g_sSamp)
432              41:          40 SampledImage 38 39
433              45:   32(ivec4) ImageGather 41 44 30
434                              Store 34(txval21) 45
435              53:          50 Load 52(g_tTex2du4a)
436              54:          18 Load 20(g_sSamp)
437              56:          55 SampledImage 53 54
438              60:   47(ivec4) ImageGather 56 59 30
439                              Store 49(txval22) 60
440              65:          62 Load 64(g_tTexcdf4a)
441              66:          18 Load 20(g_sSamp)
442              68:          67 SampledImage 65 66
443              70:    7(fvec4) ImageGather 68 69 30
444                              Store 61(txval40) 70
445              75:          72 Load 74(g_tTexcdi4a)
446              76:          18 Load 20(g_sSamp)
447              78:          77 SampledImage 75 76
448              80:   32(ivec4) ImageGather 78 79 30
449                              Store 71(txval41) 80
450              85:          82 Load 84(g_tTexcdu4a)
451              86:          18 Load 20(g_sSamp)
452              88:          87 SampledImage 85 86
453              93:   47(ivec4) ImageGather 88 92 30
454                              Store 81(txval42) 93
455              97:     12(ptr) AccessChain 95(psout) 30
456                              Store 97 96
457             100:     99(ptr) AccessChain 95(psout) 98
458                              Store 100 91
459             101:8(PS_OUTPUT) Load 95(psout)
460                              ReturnValue 101
461                              FunctionEnd
462