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