• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
300Validation failed
301// Module Version 10000
302// Generated by (magic number): 8000a
303// Id's are bound by 118
304
305                              Capability Shader
306                              Capability Sampled1D
307               1:             ExtInstImport  "GLSL.std.450"
308                              MemoryModel Logical GLSL450
309                              EntryPoint Fragment 4  "main" 110 114
310                              ExecutionMode 4 OriginUpperLeft
311                              ExecutionMode 4 DepthReplacing
312                              Source HLSL 500
313                              Name 4  "main"
314                              Name 8  "PS_OUTPUT"
315                              MemberName 8(PS_OUTPUT) 0  "Color"
316                              MemberName 8(PS_OUTPUT) 1  "Depth"
317                              Name 10  "@main("
318                              Name 13  "txval10"
319                              Name 16  "g_tTex1df4"
320                              Name 20  "g_sSamp"
321                              Name 34  "txval11"
322                              Name 37  "g_tTex1di4"
323                              Name 49  "txval12"
324                              Name 52  "g_tTex1du4"
325                              Name 61  "txval20"
326                              Name 64  "g_tTex2df4"
327                              Name 74  "txval21"
328                              Name 77  "g_tTex2di4"
329                              Name 84  "txval22"
330                              Name 87  "g_tTex2du4"
331                              Name 98  "psout"
332                              Name 107  "flattenTemp"
333                              Name 110  "@entryPointOutput.Color"
334                              Name 114  "@entryPointOutput.Depth"
335                              Name 117  "g_tTex1df4a"
336                              Decorate 16(g_tTex1df4) DescriptorSet 0
337                              Decorate 16(g_tTex1df4) Binding 0
338                              Decorate 20(g_sSamp) DescriptorSet 0
339                              Decorate 20(g_sSamp) Binding 0
340                              Decorate 37(g_tTex1di4) DescriptorSet 0
341                              Decorate 37(g_tTex1di4) Binding 2
342                              Decorate 52(g_tTex1du4) DescriptorSet 0
343                              Decorate 52(g_tTex1du4) Binding 3
344                              Decorate 64(g_tTex2df4) DescriptorSet 0
345                              Decorate 64(g_tTex2df4) Binding 4
346                              Decorate 77(g_tTex2di4) DescriptorSet 0
347                              Decorate 77(g_tTex2di4) Binding 5
348                              Decorate 87(g_tTex2du4) DescriptorSet 0
349                              Decorate 87(g_tTex2du4) Binding 6
350                              Decorate 110(@entryPointOutput.Color) Location 0
351                              Decorate 114(@entryPointOutput.Depth) BuiltIn FragDepth
352                              Decorate 117(g_tTex1df4a) DescriptorSet 0
353                              Decorate 117(g_tTex1df4a) Binding 1
354               2:             TypeVoid
355               3:             TypeFunction 2
356               6:             TypeFloat 32
357               7:             TypeVector 6(float) 4
358    8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
359               9:             TypeFunction 8(PS_OUTPUT)
360              12:             TypePointer Function 7(fvec4)
361              14:             TypeImage 6(float) 1D array sampled format:Unknown
362              15:             TypePointer UniformConstant 14
363  16(g_tTex1df4):     15(ptr) Variable UniformConstant
364              18:             TypeSampler
365              19:             TypePointer UniformConstant 18
366     20(g_sSamp):     19(ptr) Variable UniformConstant
367              22:             TypeSampledImage 14
368              24:             TypeVector 6(float) 2
369              25:    6(float) Constant 1036831949
370              26:    6(float) Constant 1045220557
371              27:   24(fvec2) ConstantComposite 25 26
372              28:    6(float) Constant 1056964608
373              29:             TypeInt 32 1
374              30:     29(int) Constant 0
375              32:             TypeVector 29(int) 4
376              33:             TypePointer Function 32(ivec4)
377              35:             TypeImage 29(int) 1D array sampled format:Unknown
378              36:             TypePointer UniformConstant 35
379  37(g_tTex1di4):     36(ptr) Variable UniformConstant
380              40:             TypeSampledImage 35
381              42:    6(float) Constant 1050253722
382              43:   24(fvec2) ConstantComposite 26 42
383              44:     29(int) Constant 1
384              46:             TypeInt 32 0
385              47:             TypeVector 46(int) 4
386              48:             TypePointer Function 47(ivec4)
387              50:             TypeImage 46(int) 1D array sampled format:Unknown
388              51:             TypePointer UniformConstant 50
389  52(g_tTex1du4):     51(ptr) Variable UniformConstant
390              55:             TypeSampledImage 50
391              57:    6(float) Constant 1053609165
392              58:   24(fvec2) ConstantComposite 42 57
393              59:     29(int) Constant 2
394              62:             TypeImage 6(float) 2D array sampled format:Unknown
395              63:             TypePointer UniformConstant 62
396  64(g_tTex2df4):     63(ptr) Variable UniformConstant
397              67:             TypeSampledImage 62
398              69:             TypeVector 6(float) 3
399              70:   69(fvec3) ConstantComposite 25 26 42
400              71:             TypeVector 29(int) 2
401              72:   71(ivec2) ConstantComposite 30 30
402              75:             TypeImage 29(int) 2D array sampled format:Unknown
403              76:             TypePointer UniformConstant 75
404  77(g_tTex2di4):     76(ptr) Variable UniformConstant
405              80:             TypeSampledImage 75
406              82:   69(fvec3) ConstantComposite 42 57 28
407              85:             TypeImage 46(int) 2D array sampled format:Unknown
408              86:             TypePointer UniformConstant 85
409  87(g_tTex2du4):     86(ptr) Variable UniformConstant
410              90:             TypeSampledImage 85
411              92:    6(float) Constant 1058642330
412              93:    6(float) Constant 1060320051
413              94:   69(fvec3) ConstantComposite 28 92 93
414              95:   71(ivec2) ConstantComposite 30 44
415              97:             TypePointer Function 8(PS_OUTPUT)
416              99:    6(float) Constant 1065353216
417             100:    7(fvec4) ConstantComposite 99 99 99 99
418             102:             TypePointer Function 6(float)
419             109:             TypePointer Output 7(fvec4)
420110(@entryPointOutput.Color):    109(ptr) Variable Output
421             113:             TypePointer Output 6(float)
422114(@entryPointOutput.Depth):    113(ptr) Variable Output
423117(g_tTex1df4a):     15(ptr) Variable UniformConstant
424         4(main):           2 Function None 3
425               5:             Label
426107(flattenTemp):     97(ptr) Variable Function
427             108:8(PS_OUTPUT) FunctionCall 10(@main()
428                              Store 107(flattenTemp) 108
429             111:     12(ptr) AccessChain 107(flattenTemp) 30
430             112:    7(fvec4) Load 111
431                              Store 110(@entryPointOutput.Color) 112
432             115:    102(ptr) AccessChain 107(flattenTemp) 44
433             116:    6(float) Load 115
434                              Store 114(@entryPointOutput.Depth) 116
435                              Return
436                              FunctionEnd
437      10(@main():8(PS_OUTPUT) Function None 9
438              11:             Label
439     13(txval10):     12(ptr) Variable Function
440     34(txval11):     33(ptr) Variable Function
441     49(txval12):     48(ptr) Variable Function
442     61(txval20):     12(ptr) Variable Function
443     74(txval21):     33(ptr) Variable Function
444     84(txval22):     48(ptr) Variable Function
445       98(psout):     97(ptr) Variable Function
446              17:          14 Load 16(g_tTex1df4)
447              21:          18 Load 20(g_sSamp)
448              23:          22 SampledImage 17 21
449              31:    7(fvec4) ImageSampleImplicitLod 23 27 Bias ConstOffset 30 28
450                              Store 13(txval10) 31
451              38:          35 Load 37(g_tTex1di4)
452              39:          18 Load 20(g_sSamp)
453              41:          40 SampledImage 38 39
454              45:   32(ivec4) ImageSampleImplicitLod 41 43 Bias ConstOffset 44 28
455                              Store 34(txval11) 45
456              53:          50 Load 52(g_tTex1du4)
457              54:          18 Load 20(g_sSamp)
458              56:          55 SampledImage 53 54
459              60:   47(ivec4) ImageSampleImplicitLod 56 58 Bias ConstOffset 59 28
460                              Store 49(txval12) 60
461              65:          62 Load 64(g_tTex2df4)
462              66:          18 Load 20(g_sSamp)
463              68:          67 SampledImage 65 66
464              73:    7(fvec4) ImageSampleImplicitLod 68 70 Bias ConstOffset 72 28
465                              Store 61(txval20) 73
466              78:          75 Load 77(g_tTex2di4)
467              79:          18 Load 20(g_sSamp)
468              81:          80 SampledImage 78 79
469              83:   32(ivec4) ImageSampleImplicitLod 81 82 Bias ConstOffset 72 28
470                              Store 74(txval21) 83
471              88:          85 Load 87(g_tTex2du4)
472              89:          18 Load 20(g_sSamp)
473              91:          90 SampledImage 88 89
474              96:   47(ivec4) ImageSampleImplicitLod 91 94 Bias ConstOffset 95 28
475                              Store 84(txval22) 96
476             101:     12(ptr) AccessChain 98(psout) 30
477                              Store 101 100
478             103:    102(ptr) AccessChain 98(psout) 44
479                              Store 103 99
480             104:8(PS_OUTPUT) Load 98(psout)
481                              ReturnValue 104
482                              FunctionEnd
483