1hlsl.samplegrad.offsetarray.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:27      Sequence
100:27        move second child to first child ( temp 4-component vector of float)
110:27          'txval10' ( temp 4-component vector of float)
120:27          textureGradOffset ( temp 4-component vector of float)
130:27            Construct combined texture-sampler ( temp sampler1DArray)
140:27              'g_tTex1df4' (layout( binding=0) uniform texture1DArray)
150:27              'g_sSamp' (layout( binding=0) uniform sampler)
160:?             Constant:
170:?               0.100000
180:?               0.200000
190:27            Constant:
200:27              1.100000
210:27            Constant:
220:27              1.200000
230:27            Constant:
240:27              1 (const int)
250:28      Sequence
260:28        move second child to first child ( temp 4-component vector of int)
270:28          'txval11' ( temp 4-component vector of int)
280:28          textureGradOffset ( temp 4-component vector of int)
290:28            Construct combined texture-sampler ( temp isampler1DArray)
300:28              'g_tTex1di4' ( uniform itexture1DArray)
310:28              'g_sSamp' (layout( binding=0) uniform sampler)
320:?             Constant:
330:?               0.100000
340:?               0.200000
350:28            Constant:
360:28              1.100000
370:28            Constant:
380:28              1.200000
390:28            Constant:
400:28              1 (const int)
410:29      Sequence
420:29        move second child to first child ( temp 4-component vector of uint)
430:29          'txval12' ( temp 4-component vector of uint)
440:29          textureGradOffset ( temp 4-component vector of uint)
450:29            Construct combined texture-sampler ( temp usampler1DArray)
460:29              'g_tTex1du4' ( uniform utexture1DArray)
470:29              'g_sSamp' (layout( binding=0) uniform sampler)
480:?             Constant:
490:?               0.100000
500:?               0.200000
510:29            Constant:
520:29              1.100000
530:29            Constant:
540:29              1.200000
550:29            Constant:
560:29              1 (const int)
570:31      Sequence
580:31        move second child to first child ( temp 4-component vector of float)
590:31          'txval20' ( temp 4-component vector of float)
600:31          textureGradOffset ( temp 4-component vector of float)
610:31            Construct combined texture-sampler ( temp sampler2DArray)
620:31              'g_tTex2df4' ( uniform texture2DArray)
630:31              'g_sSamp' (layout( binding=0) uniform sampler)
640:?             Constant:
650:?               0.100000
660:?               0.200000
670:?               0.300000
680:?             Constant:
690:?               1.100000
700:?               1.200000
710:?             Constant:
720:?               1.100000
730:?               1.200000
740:?             Constant:
750:?               1 (const int)
760:?               0 (const int)
770:32      Sequence
780:32        move second child to first child ( temp 4-component vector of int)
790:32          'txval21' ( temp 4-component vector of int)
800:32          textureGradOffset ( temp 4-component vector of int)
810:32            Construct combined texture-sampler ( temp isampler2DArray)
820:32              'g_tTex2di4' ( uniform itexture2DArray)
830:32              'g_sSamp' (layout( binding=0) uniform sampler)
840:?             Constant:
850:?               0.100000
860:?               0.200000
870:?               0.300000
880:?             Constant:
890:?               1.100000
900:?               1.200000
910:?             Constant:
920:?               1.100000
930:?               1.200000
940:?             Constant:
950:?               1 (const int)
960:?               0 (const int)
970:33      Sequence
980:33        move second child to first child ( temp 4-component vector of uint)
990:33          'txval22' ( temp 4-component vector of uint)
1000:33          textureGradOffset ( temp 4-component vector of uint)
1010:33            Construct combined texture-sampler ( temp usampler2DArray)
1020:33              'g_tTex2du4' ( uniform utexture2DArray)
1030:33              'g_sSamp' (layout( binding=0) uniform sampler)
1040:?             Constant:
1050:?               0.100000
1060:?               0.200000
1070:?               0.300000
1080:?             Constant:
1090:?               1.100000
1100:?               1.200000
1110:?             Constant:
1120:?               1.100000
1130:?               1.200000
1140:?             Constant:
1150:?               1 (const int)
1160:?               0 (const int)
1170:35      move second child to first child ( temp 4-component vector of float)
1180:35        Color: direct index for structure ( temp 4-component vector of float)
1190:35          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1200:35          Constant:
1210:35            0 (const int)
1220:35        Constant:
1230:35          1.000000
1240:35          1.000000
1250:35          1.000000
1260:35          1.000000
1270:36      move second child to first child ( temp float)
1280:36        Depth: direct index for structure ( temp float)
1290:36          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1300:36          Constant:
1310:36            1 (const int)
1320:36        Constant:
1330:36          1.000000
1340:38      Branch: Return with expression
1350:38        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1360:24  Function Definition: main( ( temp void)
1370:24    Function Parameters:
1380:?     Sequence
1390:24      Sequence
1400:24        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1410:24          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1420:24          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1430:24        move second child to first child ( temp 4-component vector of float)
1440:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1450:24          Color: direct index for structure ( temp 4-component vector of float)
1460:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1470:24            Constant:
1480:24              0 (const int)
1490:24        move second child to first child ( temp float)
1500:?           '@entryPointOutput.Depth' ( out float FragDepth)
1510:24          Depth: direct index for structure ( temp float)
1520:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1530:24            Constant:
1540:24              1 (const int)
1550:?   Linker Objects
1560:?     'g_sSamp' (layout( binding=0) uniform sampler)
1570:?     'g_tTex1df4a' (layout( binding=1) uniform texture1DArray)
1580:?     'g_tTex1df4' (layout( binding=0) uniform texture1DArray)
1590:?     'g_tTex1di4' ( uniform itexture1DArray)
1600:?     'g_tTex1du4' ( uniform utexture1DArray)
1610:?     'g_tTex2df4' ( uniform texture2DArray)
1620:?     'g_tTex2di4' ( uniform itexture2DArray)
1630:?     'g_tTex2du4' ( uniform utexture2DArray)
1640:?     'g_tTexcdf4' ( uniform textureCubeArray)
1650:?     'g_tTexcdi4' ( uniform itextureCubeArray)
1660:?     'g_tTexcdu4' ( uniform utextureCubeArray)
1670:?     '@entryPointOutput.Depth' ( out float FragDepth)
1680:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
169
170
171Linked fragment stage:
172
173
174Shader version: 500
175gl_FragCoord origin is upper left
176using depth_any
1770:? Sequence
1780:24  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
1790:24    Function Parameters:
1800:?     Sequence
1810:27      Sequence
1820:27        move second child to first child ( temp 4-component vector of float)
1830:27          'txval10' ( temp 4-component vector of float)
1840:27          textureGradOffset ( temp 4-component vector of float)
1850:27            Construct combined texture-sampler ( temp sampler1DArray)
1860:27              'g_tTex1df4' (layout( binding=0) uniform texture1DArray)
1870:27              'g_sSamp' (layout( binding=0) uniform sampler)
1880:?             Constant:
1890:?               0.100000
1900:?               0.200000
1910:27            Constant:
1920:27              1.100000
1930:27            Constant:
1940:27              1.200000
1950:27            Constant:
1960:27              1 (const int)
1970:28      Sequence
1980:28        move second child to first child ( temp 4-component vector of int)
1990:28          'txval11' ( temp 4-component vector of int)
2000:28          textureGradOffset ( temp 4-component vector of int)
2010:28            Construct combined texture-sampler ( temp isampler1DArray)
2020:28              'g_tTex1di4' ( uniform itexture1DArray)
2030:28              'g_sSamp' (layout( binding=0) uniform sampler)
2040:?             Constant:
2050:?               0.100000
2060:?               0.200000
2070:28            Constant:
2080:28              1.100000
2090:28            Constant:
2100:28              1.200000
2110:28            Constant:
2120:28              1 (const int)
2130:29      Sequence
2140:29        move second child to first child ( temp 4-component vector of uint)
2150:29          'txval12' ( temp 4-component vector of uint)
2160:29          textureGradOffset ( temp 4-component vector of uint)
2170:29            Construct combined texture-sampler ( temp usampler1DArray)
2180:29              'g_tTex1du4' ( uniform utexture1DArray)
2190:29              'g_sSamp' (layout( binding=0) uniform sampler)
2200:?             Constant:
2210:?               0.100000
2220:?               0.200000
2230:29            Constant:
2240:29              1.100000
2250:29            Constant:
2260:29              1.200000
2270:29            Constant:
2280:29              1 (const int)
2290:31      Sequence
2300:31        move second child to first child ( temp 4-component vector of float)
2310:31          'txval20' ( temp 4-component vector of float)
2320:31          textureGradOffset ( temp 4-component vector of float)
2330:31            Construct combined texture-sampler ( temp sampler2DArray)
2340:31              'g_tTex2df4' ( uniform texture2DArray)
2350:31              'g_sSamp' (layout( binding=0) uniform sampler)
2360:?             Constant:
2370:?               0.100000
2380:?               0.200000
2390:?               0.300000
2400:?             Constant:
2410:?               1.100000
2420:?               1.200000
2430:?             Constant:
2440:?               1.100000
2450:?               1.200000
2460:?             Constant:
2470:?               1 (const int)
2480:?               0 (const int)
2490:32      Sequence
2500:32        move second child to first child ( temp 4-component vector of int)
2510:32          'txval21' ( temp 4-component vector of int)
2520:32          textureGradOffset ( temp 4-component vector of int)
2530:32            Construct combined texture-sampler ( temp isampler2DArray)
2540:32              'g_tTex2di4' ( uniform itexture2DArray)
2550:32              'g_sSamp' (layout( binding=0) uniform sampler)
2560:?             Constant:
2570:?               0.100000
2580:?               0.200000
2590:?               0.300000
2600:?             Constant:
2610:?               1.100000
2620:?               1.200000
2630:?             Constant:
2640:?               1.100000
2650:?               1.200000
2660:?             Constant:
2670:?               1 (const int)
2680:?               0 (const int)
2690:33      Sequence
2700:33        move second child to first child ( temp 4-component vector of uint)
2710:33          'txval22' ( temp 4-component vector of uint)
2720:33          textureGradOffset ( temp 4-component vector of uint)
2730:33            Construct combined texture-sampler ( temp usampler2DArray)
2740:33              'g_tTex2du4' ( uniform utexture2DArray)
2750:33              'g_sSamp' (layout( binding=0) uniform sampler)
2760:?             Constant:
2770:?               0.100000
2780:?               0.200000
2790:?               0.300000
2800:?             Constant:
2810:?               1.100000
2820:?               1.200000
2830:?             Constant:
2840:?               1.100000
2850:?               1.200000
2860:?             Constant:
2870:?               1 (const int)
2880:?               0 (const int)
2890:35      move second child to first child ( temp 4-component vector of float)
2900:35        Color: direct index for structure ( temp 4-component vector of float)
2910:35          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
2920:35          Constant:
2930:35            0 (const int)
2940:35        Constant:
2950:35          1.000000
2960:35          1.000000
2970:35          1.000000
2980:35          1.000000
2990:36      move second child to first child ( temp float)
3000:36        Depth: direct index for structure ( temp float)
3010:36          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
3020:36          Constant:
3030:36            1 (const int)
3040:36        Constant:
3050:36          1.000000
3060:38      Branch: Return with expression
3070:38        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
3080:24  Function Definition: main( ( temp void)
3090:24    Function Parameters:
3100:?     Sequence
3110:24      Sequence
3120:24        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
3130:24          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
3140:24          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
3150:24        move second child to first child ( temp 4-component vector of float)
3160:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
3170:24          Color: direct index for structure ( temp 4-component vector of float)
3180:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
3190:24            Constant:
3200:24              0 (const int)
3210:24        move second child to first child ( temp float)
3220:?           '@entryPointOutput.Depth' ( out float FragDepth)
3230:24          Depth: direct index for structure ( temp float)
3240:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
3250:24            Constant:
3260:24              1 (const int)
3270:?   Linker Objects
3280:?     'g_sSamp' (layout( binding=0) uniform sampler)
3290:?     'g_tTex1df4a' (layout( binding=1) uniform texture1DArray)
3300:?     'g_tTex1df4' (layout( binding=0) uniform texture1DArray)
3310:?     'g_tTex1di4' ( uniform itexture1DArray)
3320:?     'g_tTex1du4' ( uniform utexture1DArray)
3330:?     'g_tTex2df4' ( uniform texture2DArray)
3340:?     'g_tTex2di4' ( uniform itexture2DArray)
3350:?     'g_tTex2du4' ( uniform utexture2DArray)
3360:?     'g_tTexcdf4' ( uniform textureCubeArray)
3370:?     'g_tTexcdi4' ( uniform itextureCubeArray)
3380:?     'g_tTexcdu4' ( uniform utextureCubeArray)
3390:?     '@entryPointOutput.Depth' ( out float FragDepth)
3400:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
341
342// Module Version 10000
343// Generated by (magic number): 80007
344// Id's are bound by 120
345
346                              Capability Shader
347                              Capability Sampled1D
348                              Capability SampledCubeArray
349               1:             ExtInstImport  "GLSL.std.450"
350                              MemoryModel Logical GLSL450
351                              EntryPoint Fragment 4  "main" 103 107
352                              ExecutionMode 4 OriginUpperLeft
353                              ExecutionMode 4 DepthReplacing
354                              Source HLSL 500
355                              Name 4  "main"
356                              Name 8  "PS_OUTPUT"
357                              MemberName 8(PS_OUTPUT) 0  "Color"
358                              MemberName 8(PS_OUTPUT) 1  "Depth"
359                              Name 10  "@main("
360                              Name 13  "txval10"
361                              Name 16  "g_tTex1df4"
362                              Name 20  "g_sSamp"
363                              Name 35  "txval11"
364                              Name 38  "g_tTex1di4"
365                              Name 47  "txval12"
366                              Name 50  "g_tTex1du4"
367                              Name 56  "txval20"
368                              Name 59  "g_tTex2df4"
369                              Name 72  "txval21"
370                              Name 75  "g_tTex2di4"
371                              Name 81  "txval22"
372                              Name 84  "g_tTex2du4"
373                              Name 91  "psout"
374                              Name 100  "flattenTemp"
375                              Name 103  "@entryPointOutput.Color"
376                              Name 107  "@entryPointOutput.Depth"
377                              Name 110  "g_tTex1df4a"
378                              Name 113  "g_tTexcdf4"
379                              Name 116  "g_tTexcdi4"
380                              Name 119  "g_tTexcdu4"
381                              Decorate 16(g_tTex1df4) DescriptorSet 0
382                              Decorate 16(g_tTex1df4) Binding 0
383                              Decorate 20(g_sSamp) DescriptorSet 0
384                              Decorate 20(g_sSamp) Binding 0
385                              Decorate 38(g_tTex1di4) DescriptorSet 0
386                              Decorate 50(g_tTex1du4) DescriptorSet 0
387                              Decorate 59(g_tTex2df4) DescriptorSet 0
388                              Decorate 75(g_tTex2di4) DescriptorSet 0
389                              Decorate 84(g_tTex2du4) DescriptorSet 0
390                              Decorate 103(@entryPointOutput.Color) Location 0
391                              Decorate 107(@entryPointOutput.Depth) BuiltIn FragDepth
392                              Decorate 110(g_tTex1df4a) DescriptorSet 0
393                              Decorate 110(g_tTex1df4a) Binding 1
394                              Decorate 113(g_tTexcdf4) DescriptorSet 0
395                              Decorate 116(g_tTexcdi4) DescriptorSet 0
396                              Decorate 119(g_tTexcdu4) DescriptorSet 0
397               2:             TypeVoid
398               3:             TypeFunction 2
399               6:             TypeFloat 32
400               7:             TypeVector 6(float) 4
401    8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
402               9:             TypeFunction 8(PS_OUTPUT)
403              12:             TypePointer Function 7(fvec4)
404              14:             TypeImage 6(float) 1D array sampled format:Unknown
405              15:             TypePointer UniformConstant 14
406  16(g_tTex1df4):     15(ptr) Variable UniformConstant
407              18:             TypeSampler
408              19:             TypePointer UniformConstant 18
409     20(g_sSamp):     19(ptr) Variable UniformConstant
410              22:             TypeSampledImage 14
411              24:             TypeVector 6(float) 2
412              25:    6(float) Constant 1036831949
413              26:    6(float) Constant 1045220557
414              27:   24(fvec2) ConstantComposite 25 26
415              28:    6(float) Constant 1066192077
416              29:    6(float) Constant 1067030938
417              30:             TypeInt 32 1
418              31:     30(int) Constant 1
419              33:             TypeVector 30(int) 4
420              34:             TypePointer Function 33(ivec4)
421              36:             TypeImage 30(int) 1D array sampled format:Unknown
422              37:             TypePointer UniformConstant 36
423  38(g_tTex1di4):     37(ptr) Variable UniformConstant
424              41:             TypeSampledImage 36
425              44:             TypeInt 32 0
426              45:             TypeVector 44(int) 4
427              46:             TypePointer Function 45(ivec4)
428              48:             TypeImage 44(int) 1D array sampled format:Unknown
429              49:             TypePointer UniformConstant 48
430  50(g_tTex1du4):     49(ptr) Variable UniformConstant
431              53:             TypeSampledImage 48
432              57:             TypeImage 6(float) 2D array sampled format:Unknown
433              58:             TypePointer UniformConstant 57
434  59(g_tTex2df4):     58(ptr) Variable UniformConstant
435              62:             TypeSampledImage 57
436              64:             TypeVector 6(float) 3
437              65:    6(float) Constant 1050253722
438              66:   64(fvec3) ConstantComposite 25 26 65
439              67:   24(fvec2) ConstantComposite 28 29
440              68:             TypeVector 30(int) 2
441              69:     30(int) Constant 0
442              70:   68(ivec2) ConstantComposite 31 69
443              73:             TypeImage 30(int) 2D array sampled format:Unknown
444              74:             TypePointer UniformConstant 73
445  75(g_tTex2di4):     74(ptr) Variable UniformConstant
446              78:             TypeSampledImage 73
447              82:             TypeImage 44(int) 2D array sampled format:Unknown
448              83:             TypePointer UniformConstant 82
449  84(g_tTex2du4):     83(ptr) Variable UniformConstant
450              87:             TypeSampledImage 82
451              90:             TypePointer Function 8(PS_OUTPUT)
452              92:    6(float) Constant 1065353216
453              93:    7(fvec4) ConstantComposite 92 92 92 92
454              95:             TypePointer Function 6(float)
455             102:             TypePointer Output 7(fvec4)
456103(@entryPointOutput.Color):    102(ptr) Variable Output
457             106:             TypePointer Output 6(float)
458107(@entryPointOutput.Depth):    106(ptr) Variable Output
459110(g_tTex1df4a):     15(ptr) Variable UniformConstant
460             111:             TypeImage 6(float) Cube array sampled format:Unknown
461             112:             TypePointer UniformConstant 111
462 113(g_tTexcdf4):    112(ptr) Variable UniformConstant
463             114:             TypeImage 30(int) Cube array sampled format:Unknown
464             115:             TypePointer UniformConstant 114
465 116(g_tTexcdi4):    115(ptr) Variable UniformConstant
466             117:             TypeImage 44(int) Cube array sampled format:Unknown
467             118:             TypePointer UniformConstant 117
468 119(g_tTexcdu4):    118(ptr) Variable UniformConstant
469         4(main):           2 Function None 3
470               5:             Label
471100(flattenTemp):     90(ptr) Variable Function
472             101:8(PS_OUTPUT) FunctionCall 10(@main()
473                              Store 100(flattenTemp) 101
474             104:     12(ptr) AccessChain 100(flattenTemp) 69
475             105:    7(fvec4) Load 104
476                              Store 103(@entryPointOutput.Color) 105
477             108:     95(ptr) AccessChain 100(flattenTemp) 31
478             109:    6(float) Load 108
479                              Store 107(@entryPointOutput.Depth) 109
480                              Return
481                              FunctionEnd
482      10(@main():8(PS_OUTPUT) Function None 9
483              11:             Label
484     13(txval10):     12(ptr) Variable Function
485     35(txval11):     34(ptr) Variable Function
486     47(txval12):     46(ptr) Variable Function
487     56(txval20):     12(ptr) Variable Function
488     72(txval21):     34(ptr) Variable Function
489     81(txval22):     46(ptr) Variable Function
490       91(psout):     90(ptr) Variable Function
491              17:          14 Load 16(g_tTex1df4)
492              21:          18 Load 20(g_sSamp)
493              23:          22 SampledImage 17 21
494              32:    7(fvec4) ImageSampleExplicitLod 23 27 Grad ConstOffset 28 29 31
495                              Store 13(txval10) 32
496              39:          36 Load 38(g_tTex1di4)
497              40:          18 Load 20(g_sSamp)
498              42:          41 SampledImage 39 40
499              43:   33(ivec4) ImageSampleExplicitLod 42 27 Grad ConstOffset 28 29 31
500                              Store 35(txval11) 43
501              51:          48 Load 50(g_tTex1du4)
502              52:          18 Load 20(g_sSamp)
503              54:          53 SampledImage 51 52
504              55:   45(ivec4) ImageSampleExplicitLod 54 27 Grad ConstOffset 28 29 31
505                              Store 47(txval12) 55
506              60:          57 Load 59(g_tTex2df4)
507              61:          18 Load 20(g_sSamp)
508              63:          62 SampledImage 60 61
509              71:    7(fvec4) ImageSampleExplicitLod 63 66 Grad ConstOffset 67 67 70
510                              Store 56(txval20) 71
511              76:          73 Load 75(g_tTex2di4)
512              77:          18 Load 20(g_sSamp)
513              79:          78 SampledImage 76 77
514              80:   33(ivec4) ImageSampleExplicitLod 79 66 Grad ConstOffset 67 67 70
515                              Store 72(txval21) 80
516              85:          82 Load 84(g_tTex2du4)
517              86:          18 Load 20(g_sSamp)
518              88:          87 SampledImage 85 86
519              89:   45(ivec4) ImageSampleExplicitLod 88 66 Grad ConstOffset 67 67 70
520                              Store 81(txval22) 89
521              94:     12(ptr) AccessChain 91(psout) 69
522                              Store 94 93
523              96:     95(ptr) AccessChain 91(psout) 31
524                              Store 96 92
525              97:8(PS_OUTPUT) Load 91(psout)
526                              ReturnValue 97
527                              FunctionEnd
528