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