• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.gather.offset.dx10.frag
2Shader version: 500
3gl_FragCoord origin is upper left
4using depth_any
50:? Sequence
60:28  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
70:28    Function Parameters:
80:?     Sequence
90:33      Sequence
100:33        move second child to first child ( temp 4-component vector of float)
110:33          'txval20' ( temp 4-component vector of float)
120:33          textureGatherOffset ( temp 4-component vector of float)
130:33            Construct combined texture-sampler ( temp sampler2D)
140:33              'g_tTex2df4' ( uniform texture2D)
150:33              'g_sSamp' (layout( binding=0) uniform sampler)
160:?             Constant:
170:?               0.100000
180:?               0.200000
190:?             Constant:
200:?               1 (const int)
210:?               0 (const int)
220:34      Sequence
230:34        move second child to first child ( temp 4-component vector of int)
240:34          'txval21' ( temp 4-component vector of int)
250:34          textureGatherOffset ( temp 4-component vector of int)
260:34            Construct combined texture-sampler ( temp isampler2D)
270:34              'g_tTex2di4' ( uniform itexture2D)
280:34              'g_sSamp' (layout( binding=0) uniform sampler)
290:?             Constant:
300:?               0.300000
310:?               0.400000
320:?             Constant:
330:?               1 (const int)
340:?               1 (const int)
350:35      Sequence
360:35        move second child to first child ( temp 4-component vector of uint)
370:35          'txval22' ( temp 4-component vector of uint)
380:35          textureGatherOffset ( temp 4-component vector of uint)
390:35            Construct combined texture-sampler ( temp usampler2D)
400:35              'g_tTex2du4' ( uniform utexture2D)
410:35              'g_sSamp' (layout( binding=0) uniform sampler)
420:?             Constant:
430:?               0.500000
440:?               0.600000
450:?             Constant:
460:?               1 (const int)
470:?               -1 (const int)
480:40      move second child to first child ( temp 4-component vector of float)
490:40        Color: direct index for structure ( temp 4-component vector of float)
500:40          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
510:40          Constant:
520:40            0 (const int)
530:40        Constant:
540:40          1.000000
550:40          1.000000
560:40          1.000000
570:40          1.000000
580:41      move second child to first child ( temp float)
590:41        Depth: direct index for structure ( temp float)
600:41          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
610:41          Constant:
620:41            1 (const int)
630:41        Constant:
640:41          1.000000
650:43      Branch: Return with expression
660:43        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
670:28  Function Definition: main( ( temp void)
680:28    Function Parameters:
690:?     Sequence
700:28      Sequence
710:28        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
720:28          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
730:28          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
740:28        move second child to first child ( temp 4-component vector of float)
750:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
760:28          Color: direct index for structure ( temp 4-component vector of float)
770:28            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
780:28            Constant:
790:28              0 (const int)
800:28        move second child to first child ( temp float)
810:?           '@entryPointOutput.Depth' ( out float FragDepth)
820:28          Depth: direct index for structure ( temp float)
830:28            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
840:28            Constant:
850:28              1 (const int)
860:?   Linker Objects
870:?     'g_sSamp' (layout( binding=0) uniform sampler)
880:?     'g_tTex1df4a' (layout( binding=1) uniform texture1D)
890:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
900:?     'g_tTex1di4' ( uniform itexture1D)
910:?     'g_tTex1du4' ( uniform utexture1D)
920:?     'g_tTex2df4' ( uniform texture2D)
930:?     'g_tTex2di4' ( uniform itexture2D)
940:?     'g_tTex2du4' ( uniform utexture2D)
950:?     'g_tTex3df4' ( uniform texture3D)
960:?     'g_tTex3di4' ( uniform itexture3D)
970:?     'g_tTex3du4' ( uniform utexture3D)
980:?     'g_tTexcdf4' ( uniform textureCube)
990:?     'g_tTexcdi4' ( uniform itextureCube)
1000:?     'g_tTexcdu4' ( uniform utextureCube)
1010:?     '@entryPointOutput.Depth' ( out float FragDepth)
1020:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
103
104
105Linked fragment stage:
106
107
108Shader version: 500
109gl_FragCoord origin is upper left
110using depth_any
1110:? Sequence
1120:28  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1130:28    Function Parameters:
1140:?     Sequence
1150:33      Sequence
1160:33        move second child to first child ( temp 4-component vector of float)
1170:33          'txval20' ( temp 4-component vector of float)
1180:33          textureGatherOffset ( temp 4-component vector of float)
1190:33            Construct combined texture-sampler ( temp sampler2D)
1200:33              'g_tTex2df4' ( uniform texture2D)
1210:33              'g_sSamp' (layout( binding=0) uniform sampler)
1220:?             Constant:
1230:?               0.100000
1240:?               0.200000
1250:?             Constant:
1260:?               1 (const int)
1270:?               0 (const int)
1280:34      Sequence
1290:34        move second child to first child ( temp 4-component vector of int)
1300:34          'txval21' ( temp 4-component vector of int)
1310:34          textureGatherOffset ( temp 4-component vector of int)
1320:34            Construct combined texture-sampler ( temp isampler2D)
1330:34              'g_tTex2di4' ( uniform itexture2D)
1340:34              'g_sSamp' (layout( binding=0) uniform sampler)
1350:?             Constant:
1360:?               0.300000
1370:?               0.400000
1380:?             Constant:
1390:?               1 (const int)
1400:?               1 (const int)
1410:35      Sequence
1420:35        move second child to first child ( temp 4-component vector of uint)
1430:35          'txval22' ( temp 4-component vector of uint)
1440:35          textureGatherOffset ( temp 4-component vector of uint)
1450:35            Construct combined texture-sampler ( temp usampler2D)
1460:35              'g_tTex2du4' ( uniform utexture2D)
1470:35              'g_sSamp' (layout( binding=0) uniform sampler)
1480:?             Constant:
1490:?               0.500000
1500:?               0.600000
1510:?             Constant:
1520:?               1 (const int)
1530:?               -1 (const int)
1540:40      move second child to first child ( temp 4-component vector of float)
1550:40        Color: direct index for structure ( temp 4-component vector of float)
1560:40          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1570:40          Constant:
1580:40            0 (const int)
1590:40        Constant:
1600:40          1.000000
1610:40          1.000000
1620:40          1.000000
1630:40          1.000000
1640:41      move second child to first child ( temp float)
1650:41        Depth: direct index for structure ( temp float)
1660:41          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1670:41          Constant:
1680:41            1 (const int)
1690:41        Constant:
1700:41          1.000000
1710:43      Branch: Return with expression
1720:43        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1730:28  Function Definition: main( ( temp void)
1740:28    Function Parameters:
1750:?     Sequence
1760:28      Sequence
1770:28        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1780:28          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1790:28          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1800:28        move second child to first child ( temp 4-component vector of float)
1810:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1820:28          Color: direct index for structure ( temp 4-component vector of float)
1830:28            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1840:28            Constant:
1850:28              0 (const int)
1860:28        move second child to first child ( temp float)
1870:?           '@entryPointOutput.Depth' ( out float FragDepth)
1880:28          Depth: direct index for structure ( temp float)
1890:28            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1900:28            Constant:
1910:28              1 (const int)
1920:?   Linker Objects
1930:?     'g_sSamp' (layout( binding=0) uniform sampler)
1940:?     'g_tTex1df4a' (layout( binding=1) uniform texture1D)
1950:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
1960:?     'g_tTex1di4' ( uniform itexture1D)
1970:?     'g_tTex1du4' ( uniform utexture1D)
1980:?     'g_tTex2df4' ( uniform texture2D)
1990:?     'g_tTex2di4' ( uniform itexture2D)
2000:?     'g_tTex2du4' ( uniform utexture2D)
2010:?     'g_tTex3df4' ( uniform texture3D)
2020:?     'g_tTex3di4' ( uniform itexture3D)
2030:?     'g_tTex3du4' ( uniform utexture3D)
2040:?     'g_tTexcdf4' ( uniform textureCube)
2050:?     'g_tTexcdi4' ( uniform itextureCube)
2060:?     'g_tTexcdu4' ( uniform utextureCube)
2070:?     '@entryPointOutput.Depth' ( out float FragDepth)
2080:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
209
210// Module Version 10000
211// Generated by (magic number): 80008
212// Id's are bound by 114
213
214                              Capability Shader
215                              Capability Sampled1D
216               1:             ExtInstImport  "GLSL.std.450"
217                              MemoryModel Logical GLSL450
218                              EntryPoint Fragment 4  "main" 79 83
219                              ExecutionMode 4 OriginUpperLeft
220                              ExecutionMode 4 DepthReplacing
221                              Source HLSL 500
222                              Name 4  "main"
223                              Name 8  "PS_OUTPUT"
224                              MemberName 8(PS_OUTPUT) 0  "Color"
225                              MemberName 8(PS_OUTPUT) 1  "Depth"
226                              Name 10  "@main("
227                              Name 13  "txval20"
228                              Name 16  "g_tTex2df4"
229                              Name 20  "g_sSamp"
230                              Name 36  "txval21"
231                              Name 39  "g_tTex2di4"
232                              Name 52  "txval22"
233                              Name 55  "g_tTex2du4"
234                              Name 67  "psout"
235                              Name 76  "flattenTemp"
236                              Name 79  "@entryPointOutput.Color"
237                              Name 83  "@entryPointOutput.Depth"
238                              Name 88  "g_tTex1df4a"
239                              Name 89  "g_tTex1df4"
240                              Name 92  "g_tTex1di4"
241                              Name 95  "g_tTex1du4"
242                              Name 98  "g_tTex3df4"
243                              Name 101  "g_tTex3di4"
244                              Name 104  "g_tTex3du4"
245                              Name 107  "g_tTexcdf4"
246                              Name 110  "g_tTexcdi4"
247                              Name 113  "g_tTexcdu4"
248                              Decorate 16(g_tTex2df4) DescriptorSet 0
249                              Decorate 16(g_tTex2df4) Binding 0
250                              Decorate 20(g_sSamp) DescriptorSet 0
251                              Decorate 20(g_sSamp) Binding 0
252                              Decorate 39(g_tTex2di4) DescriptorSet 0
253                              Decorate 39(g_tTex2di4) Binding 0
254                              Decorate 55(g_tTex2du4) DescriptorSet 0
255                              Decorate 55(g_tTex2du4) Binding 0
256                              Decorate 79(@entryPointOutput.Color) Location 0
257                              Decorate 83(@entryPointOutput.Depth) BuiltIn FragDepth
258                              Decorate 88(g_tTex1df4a) DescriptorSet 0
259                              Decorate 88(g_tTex1df4a) Binding 1
260                              Decorate 89(g_tTex1df4) DescriptorSet 0
261                              Decorate 89(g_tTex1df4) Binding 0
262                              Decorate 92(g_tTex1di4) DescriptorSet 0
263                              Decorate 92(g_tTex1di4) Binding 0
264                              Decorate 95(g_tTex1du4) DescriptorSet 0
265                              Decorate 95(g_tTex1du4) Binding 0
266                              Decorate 98(g_tTex3df4) DescriptorSet 0
267                              Decorate 98(g_tTex3df4) Binding 0
268                              Decorate 101(g_tTex3di4) DescriptorSet 0
269                              Decorate 101(g_tTex3di4) Binding 0
270                              Decorate 104(g_tTex3du4) DescriptorSet 0
271                              Decorate 104(g_tTex3du4) Binding 0
272                              Decorate 107(g_tTexcdf4) DescriptorSet 0
273                              Decorate 107(g_tTexcdf4) Binding 0
274                              Decorate 110(g_tTexcdi4) DescriptorSet 0
275                              Decorate 110(g_tTexcdi4) Binding 0
276                              Decorate 113(g_tTexcdu4) DescriptorSet 0
277                              Decorate 113(g_tTexcdu4) Binding 0
278               2:             TypeVoid
279               3:             TypeFunction 2
280               6:             TypeFloat 32
281               7:             TypeVector 6(float) 4
282    8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
283               9:             TypeFunction 8(PS_OUTPUT)
284              12:             TypePointer Function 7(fvec4)
285              14:             TypeImage 6(float) 2D sampled format:Unknown
286              15:             TypePointer UniformConstant 14
287  16(g_tTex2df4):     15(ptr) Variable UniformConstant
288              18:             TypeSampler
289              19:             TypePointer UniformConstant 18
290     20(g_sSamp):     19(ptr) Variable UniformConstant
291              22:             TypeSampledImage 14
292              24:             TypeVector 6(float) 2
293              25:    6(float) Constant 1036831949
294              26:    6(float) Constant 1045220557
295              27:   24(fvec2) ConstantComposite 25 26
296              28:             TypeInt 32 1
297              29:             TypeVector 28(int) 2
298              30:     28(int) Constant 1
299              31:     28(int) Constant 0
300              32:   29(ivec2) ConstantComposite 30 31
301              34:             TypeVector 28(int) 4
302              35:             TypePointer Function 34(ivec4)
303              37:             TypeImage 28(int) 2D sampled format:Unknown
304              38:             TypePointer UniformConstant 37
305  39(g_tTex2di4):     38(ptr) Variable UniformConstant
306              42:             TypeSampledImage 37
307              44:    6(float) Constant 1050253722
308              45:    6(float) Constant 1053609165
309              46:   24(fvec2) ConstantComposite 44 45
310              47:   29(ivec2) ConstantComposite 30 30
311              49:             TypeInt 32 0
312              50:             TypeVector 49(int) 4
313              51:             TypePointer Function 50(ivec4)
314              53:             TypeImage 49(int) 2D sampled format:Unknown
315              54:             TypePointer UniformConstant 53
316  55(g_tTex2du4):     54(ptr) Variable UniformConstant
317              58:             TypeSampledImage 53
318              60:    6(float) Constant 1056964608
319              61:    6(float) Constant 1058642330
320              62:   24(fvec2) ConstantComposite 60 61
321              63:     28(int) Constant 4294967295
322              64:   29(ivec2) ConstantComposite 30 63
323              66:             TypePointer Function 8(PS_OUTPUT)
324              68:    6(float) Constant 1065353216
325              69:    7(fvec4) ConstantComposite 68 68 68 68
326              71:             TypePointer Function 6(float)
327              78:             TypePointer Output 7(fvec4)
32879(@entryPointOutput.Color):     78(ptr) Variable Output
329              82:             TypePointer Output 6(float)
33083(@entryPointOutput.Depth):     82(ptr) Variable Output
331              86:             TypeImage 6(float) 1D sampled format:Unknown
332              87:             TypePointer UniformConstant 86
333 88(g_tTex1df4a):     87(ptr) Variable UniformConstant
334  89(g_tTex1df4):     87(ptr) Variable UniformConstant
335              90:             TypeImage 28(int) 1D sampled format:Unknown
336              91:             TypePointer UniformConstant 90
337  92(g_tTex1di4):     91(ptr) Variable UniformConstant
338              93:             TypeImage 49(int) 1D sampled format:Unknown
339              94:             TypePointer UniformConstant 93
340  95(g_tTex1du4):     94(ptr) Variable UniformConstant
341              96:             TypeImage 6(float) 3D sampled format:Unknown
342              97:             TypePointer UniformConstant 96
343  98(g_tTex3df4):     97(ptr) Variable UniformConstant
344              99:             TypeImage 28(int) 3D sampled format:Unknown
345             100:             TypePointer UniformConstant 99
346 101(g_tTex3di4):    100(ptr) Variable UniformConstant
347             102:             TypeImage 49(int) 3D sampled format:Unknown
348             103:             TypePointer UniformConstant 102
349 104(g_tTex3du4):    103(ptr) Variable UniformConstant
350             105:             TypeImage 6(float) Cube sampled format:Unknown
351             106:             TypePointer UniformConstant 105
352 107(g_tTexcdf4):    106(ptr) Variable UniformConstant
353             108:             TypeImage 28(int) Cube sampled format:Unknown
354             109:             TypePointer UniformConstant 108
355 110(g_tTexcdi4):    109(ptr) Variable UniformConstant
356             111:             TypeImage 49(int) Cube sampled format:Unknown
357             112:             TypePointer UniformConstant 111
358 113(g_tTexcdu4):    112(ptr) Variable UniformConstant
359         4(main):           2 Function None 3
360               5:             Label
361 76(flattenTemp):     66(ptr) Variable Function
362              77:8(PS_OUTPUT) FunctionCall 10(@main()
363                              Store 76(flattenTemp) 77
364              80:     12(ptr) AccessChain 76(flattenTemp) 31
365              81:    7(fvec4) Load 80
366                              Store 79(@entryPointOutput.Color) 81
367              84:     71(ptr) AccessChain 76(flattenTemp) 30
368              85:    6(float) Load 84
369                              Store 83(@entryPointOutput.Depth) 85
370                              Return
371                              FunctionEnd
372      10(@main():8(PS_OUTPUT) Function None 9
373              11:             Label
374     13(txval20):     12(ptr) Variable Function
375     36(txval21):     35(ptr) Variable Function
376     52(txval22):     51(ptr) Variable Function
377       67(psout):     66(ptr) Variable Function
378              17:          14 Load 16(g_tTex2df4)
379              21:          18 Load 20(g_sSamp)
380              23:          22 SampledImage 17 21
381              33:    7(fvec4) ImageGather 23 27 31 ConstOffset 32
382                              Store 13(txval20) 33
383              40:          37 Load 39(g_tTex2di4)
384              41:          18 Load 20(g_sSamp)
385              43:          42 SampledImage 40 41
386              48:   34(ivec4) ImageGather 43 46 31 ConstOffset 47
387                              Store 36(txval21) 48
388              56:          53 Load 55(g_tTex2du4)
389              57:          18 Load 20(g_sSamp)
390              59:          58 SampledImage 56 57
391              65:   50(ivec4) ImageGather 59 62 31 ConstOffset 64
392                              Store 52(txval22) 65
393              70:     12(ptr) AccessChain 67(psout) 31
394                              Store 70 69
395              72:     71(ptr) AccessChain 67(psout) 30
396                              Store 72 68
397              73:8(PS_OUTPUT) Load 67(psout)
398                              ReturnValue 73
399                              FunctionEnd
400