1hlsl.intrinsics.promote.outputs.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:20  Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
60:20    Function Parameters:
70:?     Sequence
80:37      clamp ( temp float)
90:37        fpos: direct index for structure ( uniform float)
100:37          'anon@0' (layout( row_major std140) uniform block{ uniform int i,  uniform uint u,  uniform float f,  uniform bool b,  uniform 2-component vector of int i2,  uniform 2-component vector of uint u2,  uniform 2-component vector of float f2,  uniform 2-component vector of bool b2,  uniform uint upos,  uniform float fpos})
110:37          Constant:
120:37            9 (const uint)
130:37        Constant:
140:37          0.000000
150:37        Constant:
160:37          1.000000
170:40      Sequence
180:40        move second child to first child ( temp uint)
190:40          'sizeQueryTemp' ( temp uint)
200:40          textureSize ( temp uint)
210:40            'g_tTex1df4' ( uniform texture1D)
220:40            Constant:
230:40              0 (const int)
240:40        move second child to first child ( temp int)
250:40          'WidthI' ( temp int)
260:40          Convert uint to int ( temp int)
270:40            'sizeQueryTemp' ( temp uint)
280:41      Sequence
290:41        move second child to first child ( temp uint)
300:41          'sizeQueryTemp' ( temp uint)
310:41          textureSize ( temp uint)
320:41            'g_tTex1df4' ( uniform texture1D)
330:41            Constant:
340:41              6 (const uint)
350:41        move second child to first child ( temp int)
360:41          'WidthI' ( temp int)
370:41          Convert uint to int ( temp int)
380:41            'sizeQueryTemp' ( temp uint)
390:41        move second child to first child ( temp uint)
400:41          'NumberOfLevelsU' ( temp uint)
410:41          textureQueryLevels ( temp uint)
420:41            'g_tTex1df4' ( uniform texture1D)
430:42      Sequence
440:42        move second child to first child ( temp uint)
450:42          'sizeQueryTemp' ( temp uint)
460:42          textureSize ( temp uint)
470:42            'g_tTex1df4' ( uniform texture1D)
480:42            Constant:
490:42              6 (const uint)
500:42        move second child to first child ( temp uint)
510:42          'WidthU' ( temp uint)
520:42          'sizeQueryTemp' ( temp uint)
530:42        move second child to first child ( temp int)
540:42          'NumberOfLevelsI' ( temp int)
550:42          Convert uint to int ( temp int)
560:42            textureQueryLevels ( temp uint)
570:42              'g_tTex1df4' ( uniform texture1D)
580:43      Sequence
590:43        move second child to first child ( temp uint)
600:43          'sizeQueryTemp' ( temp uint)
610:43          textureSize ( temp uint)
620:43            'g_tTex1df4' ( uniform texture1D)
630:43            Constant:
640:43              6 (const uint)
650:43        move second child to first child ( temp int)
660:43          'WidthI' ( temp int)
670:43          Convert uint to int ( temp int)
680:43            'sizeQueryTemp' ( temp uint)
690:43        move second child to first child ( temp int)
700:43          'NumberOfLevelsI' ( temp int)
710:43          Convert uint to int ( temp int)
720:43            textureQueryLevels ( temp uint)
730:43              'g_tTex1df4' ( uniform texture1D)
740:47      move second child to first child ( temp 4-component vector of float)
750:47        color: direct index for structure ( temp 4-component vector of float)
760:47          'ps_output' ( temp structure{ temp 4-component vector of float color})
770:47          Constant:
780:47            0 (const int)
790:47        Constant:
800:47          0.000000
810:47          0.000000
820:47          0.000000
830:47          0.000000
840:48      Branch: Return with expression
850:48        'ps_output' ( temp structure{ temp 4-component vector of float color})
860:20  Function Definition: main( ( temp void)
870:20    Function Parameters:
880:?     Sequence
890:20      Sequence
900:20        move second child to first child ( temp 4-component vector of float)
910:?           '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
920:20          color: direct index for structure ( temp 4-component vector of float)
930:20            Function Call: @main( ( temp structure{ temp 4-component vector of float color})
940:20            Constant:
950:20              0 (const int)
960:?   Linker Objects
970:?     'anon@0' (layout( row_major std140) uniform block{ uniform int i,  uniform uint u,  uniform float f,  uniform bool b,  uniform 2-component vector of int i2,  uniform 2-component vector of uint u2,  uniform 2-component vector of float f2,  uniform 2-component vector of bool b2,  uniform uint upos,  uniform float fpos})
980:?     'g_tTexbfs' (layout( r32f) uniform textureBuffer)
990:?     'g_tTex1df4' ( uniform texture1D)
1000:?     '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
101
102
103Linked fragment stage:
104
105
106Shader version: 500
107gl_FragCoord origin is upper left
1080:? Sequence
1090:20  Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
1100:20    Function Parameters:
1110:?     Sequence
1120:37      clamp ( temp float)
1130:37        fpos: direct index for structure ( uniform float)
1140:37          'anon@0' (layout( row_major std140) uniform block{ uniform int i,  uniform uint u,  uniform float f,  uniform bool b,  uniform 2-component vector of int i2,  uniform 2-component vector of uint u2,  uniform 2-component vector of float f2,  uniform 2-component vector of bool b2,  uniform uint upos,  uniform float fpos})
1150:37          Constant:
1160:37            9 (const uint)
1170:37        Constant:
1180:37          0.000000
1190:37        Constant:
1200:37          1.000000
1210:40      Sequence
1220:40        move second child to first child ( temp uint)
1230:40          'sizeQueryTemp' ( temp uint)
1240:40          textureSize ( temp uint)
1250:40            'g_tTex1df4' ( uniform texture1D)
1260:40            Constant:
1270:40              0 (const int)
1280:40        move second child to first child ( temp int)
1290:40          'WidthI' ( temp int)
1300:40          Convert uint to int ( temp int)
1310:40            'sizeQueryTemp' ( temp uint)
1320:41      Sequence
1330:41        move second child to first child ( temp uint)
1340:41          'sizeQueryTemp' ( temp uint)
1350:41          textureSize ( temp uint)
1360:41            'g_tTex1df4' ( uniform texture1D)
1370:41            Constant:
1380:41              6 (const uint)
1390:41        move second child to first child ( temp int)
1400:41          'WidthI' ( temp int)
1410:41          Convert uint to int ( temp int)
1420:41            'sizeQueryTemp' ( temp uint)
1430:41        move second child to first child ( temp uint)
1440:41          'NumberOfLevelsU' ( temp uint)
1450:41          textureQueryLevels ( temp uint)
1460:41            'g_tTex1df4' ( uniform texture1D)
1470:42      Sequence
1480:42        move second child to first child ( temp uint)
1490:42          'sizeQueryTemp' ( temp uint)
1500:42          textureSize ( temp uint)
1510:42            'g_tTex1df4' ( uniform texture1D)
1520:42            Constant:
1530:42              6 (const uint)
1540:42        move second child to first child ( temp uint)
1550:42          'WidthU' ( temp uint)
1560:42          'sizeQueryTemp' ( temp uint)
1570:42        move second child to first child ( temp int)
1580:42          'NumberOfLevelsI' ( temp int)
1590:42          Convert uint to int ( temp int)
1600:42            textureQueryLevels ( temp uint)
1610:42              'g_tTex1df4' ( uniform texture1D)
1620:43      Sequence
1630:43        move second child to first child ( temp uint)
1640:43          'sizeQueryTemp' ( temp uint)
1650:43          textureSize ( temp uint)
1660:43            'g_tTex1df4' ( uniform texture1D)
1670:43            Constant:
1680:43              6 (const uint)
1690:43        move second child to first child ( temp int)
1700:43          'WidthI' ( temp int)
1710:43          Convert uint to int ( temp int)
1720:43            'sizeQueryTemp' ( temp uint)
1730:43        move second child to first child ( temp int)
1740:43          'NumberOfLevelsI' ( temp int)
1750:43          Convert uint to int ( temp int)
1760:43            textureQueryLevels ( temp uint)
1770:43              'g_tTex1df4' ( uniform texture1D)
1780:47      move second child to first child ( temp 4-component vector of float)
1790:47        color: direct index for structure ( temp 4-component vector of float)
1800:47          'ps_output' ( temp structure{ temp 4-component vector of float color})
1810:47          Constant:
1820:47            0 (const int)
1830:47        Constant:
1840:47          0.000000
1850:47          0.000000
1860:47          0.000000
1870:47          0.000000
1880:48      Branch: Return with expression
1890:48        'ps_output' ( temp structure{ temp 4-component vector of float color})
1900:20  Function Definition: main( ( temp void)
1910:20    Function Parameters:
1920:?     Sequence
1930:20      Sequence
1940:20        move second child to first child ( temp 4-component vector of float)
1950:?           '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
1960:20          color: direct index for structure ( temp 4-component vector of float)
1970:20            Function Call: @main( ( temp structure{ temp 4-component vector of float color})
1980:20            Constant:
1990:20              0 (const int)
2000:?   Linker Objects
2010:?     'anon@0' (layout( row_major std140) uniform block{ uniform int i,  uniform uint u,  uniform float f,  uniform bool b,  uniform 2-component vector of int i2,  uniform 2-component vector of uint u2,  uniform 2-component vector of float f2,  uniform 2-component vector of bool b2,  uniform uint upos,  uniform float fpos})
2020:?     'g_tTexbfs' (layout( r32f) uniform textureBuffer)
2030:?     'g_tTex1df4' ( uniform texture1D)
2040:?     '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
205
206// Module Version 10000
207// Generated by (magic number): 80007
208// Id's are bound by 80
209
210                              Capability Shader
211                              Capability Sampled1D
212                              Capability SampledBuffer
213                              Capability ImageQuery
214               1:             ExtInstImport  "GLSL.std.450"
215                              MemoryModel Logical GLSL450
216                              EntryPoint Fragment 4  "main" 74
217                              ExecutionMode 4 OriginUpperLeft
218                              Source HLSL 500
219                              Name 4  "main"
220                              Name 8  "PS_OUTPUT"
221                              MemberName 8(PS_OUTPUT) 0  "color"
222                              Name 10  "@main("
223                              Name 17  "$Global"
224                              MemberName 17($Global) 0  "i"
225                              MemberName 17($Global) 1  "u"
226                              MemberName 17($Global) 2  "f"
227                              MemberName 17($Global) 3  "b"
228                              MemberName 17($Global) 4  "i2"
229                              MemberName 17($Global) 5  "u2"
230                              MemberName 17($Global) 6  "f2"
231                              MemberName 17($Global) 7  "b2"
232                              MemberName 17($Global) 8  "upos"
233                              MemberName 17($Global) 9  "fpos"
234                              Name 19  ""
235                              Name 28  "sizeQueryTemp"
236                              Name 31  "g_tTex1df4"
237                              Name 36  "WidthI"
238                              Name 39  "sizeQueryTemp"
239                              Name 45  "NumberOfLevelsU"
240                              Name 48  "sizeQueryTemp"
241                              Name 51  "WidthU"
242                              Name 53  "NumberOfLevelsI"
243                              Name 57  "sizeQueryTemp"
244                              Name 66  "ps_output"
245                              Name 74  "@entryPointOutput.color"
246                              Name 79  "g_tTexbfs"
247                              MemberDecorate 17($Global) 0 Offset 0
248                              MemberDecorate 17($Global) 1 Offset 4
249                              MemberDecorate 17($Global) 2 Offset 8
250                              MemberDecorate 17($Global) 3 Offset 12
251                              MemberDecorate 17($Global) 4 Offset 16
252                              MemberDecorate 17($Global) 5 Offset 24
253                              MemberDecorate 17($Global) 6 Offset 32
254                              MemberDecorate 17($Global) 7 Offset 40
255                              MemberDecorate 17($Global) 8 Offset 48
256                              MemberDecorate 17($Global) 9 Offset 52
257                              Decorate 17($Global) Block
258                              Decorate 19 DescriptorSet 0
259                              Decorate 31(g_tTex1df4) DescriptorSet 0
260                              Decorate 74(@entryPointOutput.color) Location 0
261                              Decorate 79(g_tTexbfs) DescriptorSet 0
262               2:             TypeVoid
263               3:             TypeFunction 2
264               6:             TypeFloat 32
265               7:             TypeVector 6(float) 4
266    8(PS_OUTPUT):             TypeStruct 7(fvec4)
267               9:             TypeFunction 8(PS_OUTPUT)
268              12:             TypeInt 32 1
269              13:             TypeInt 32 0
270              14:             TypeVector 12(int) 2
271              15:             TypeVector 13(int) 2
272              16:             TypeVector 6(float) 2
273     17($Global):             TypeStruct 12(int) 13(int) 6(float) 13(int) 14(ivec2) 15(ivec2) 16(fvec2) 15(ivec2) 13(int) 6(float)
274              18:             TypePointer Uniform 17($Global)
275              19:     18(ptr) Variable Uniform
276              20:     12(int) Constant 9
277              21:             TypePointer Uniform 6(float)
278              24:    6(float) Constant 0
279              25:    6(float) Constant 1065353216
280              27:             TypePointer Function 13(int)
281              29:             TypeImage 6(float) 1D sampled format:Unknown
282              30:             TypePointer UniformConstant 29
283  31(g_tTex1df4):     30(ptr) Variable UniformConstant
284              33:     12(int) Constant 0
285              35:             TypePointer Function 12(int)
286              41:     13(int) Constant 6
287              65:             TypePointer Function 8(PS_OUTPUT)
288              67:    7(fvec4) ConstantComposite 24 24 24 24
289              68:             TypePointer Function 7(fvec4)
290              73:             TypePointer Output 7(fvec4)
29174(@entryPointOutput.color):     73(ptr) Variable Output
292              77:             TypeImage 6(float) Buffer sampled format:R32f
293              78:             TypePointer UniformConstant 77
294   79(g_tTexbfs):     78(ptr) Variable UniformConstant
295         4(main):           2 Function None 3
296               5:             Label
297              75:8(PS_OUTPUT) FunctionCall 10(@main()
298              76:    7(fvec4) CompositeExtract 75 0
299                              Store 74(@entryPointOutput.color) 76
300                              Return
301                              FunctionEnd
302      10(@main():8(PS_OUTPUT) Function None 9
303              11:             Label
30428(sizeQueryTemp):     27(ptr) Variable Function
305      36(WidthI):     35(ptr) Variable Function
30639(sizeQueryTemp):     27(ptr) Variable Function
30745(NumberOfLevelsU):     27(ptr) Variable Function
30848(sizeQueryTemp):     27(ptr) Variable Function
309      51(WidthU):     27(ptr) Variable Function
31053(NumberOfLevelsI):     35(ptr) Variable Function
31157(sizeQueryTemp):     27(ptr) Variable Function
312   66(ps_output):     65(ptr) Variable Function
313              22:     21(ptr) AccessChain 19 20
314              23:    6(float) Load 22
315              26:    6(float) ExtInst 1(GLSL.std.450) 43(FClamp) 23 24 25
316              32:          29 Load 31(g_tTex1df4)
317              34:     13(int) ImageQuerySizeLod 32 33
318                              Store 28(sizeQueryTemp) 34
319              37:     13(int) Load 28(sizeQueryTemp)
320              38:     12(int) Bitcast 37
321                              Store 36(WidthI) 38
322              40:          29 Load 31(g_tTex1df4)
323              42:     13(int) ImageQuerySizeLod 40 41
324                              Store 39(sizeQueryTemp) 42
325              43:     13(int) Load 39(sizeQueryTemp)
326              44:     12(int) Bitcast 43
327                              Store 36(WidthI) 44
328              46:          29 Load 31(g_tTex1df4)
329              47:     13(int) ImageQueryLevels 46
330                              Store 45(NumberOfLevelsU) 47
331              49:          29 Load 31(g_tTex1df4)
332              50:     13(int) ImageQuerySizeLod 49 41
333                              Store 48(sizeQueryTemp) 50
334              52:     13(int) Load 48(sizeQueryTemp)
335                              Store 51(WidthU) 52
336              54:          29 Load 31(g_tTex1df4)
337              55:     13(int) ImageQueryLevels 54
338              56:     12(int) Bitcast 55
339                              Store 53(NumberOfLevelsI) 56
340              58:          29 Load 31(g_tTex1df4)
341              59:     13(int) ImageQuerySizeLod 58 41
342                              Store 57(sizeQueryTemp) 59
343              60:     13(int) Load 57(sizeQueryTemp)
344              61:     12(int) Bitcast 60
345                              Store 36(WidthI) 61
346              62:          29 Load 31(g_tTex1df4)
347              63:     13(int) ImageQueryLevels 62
348              64:     12(int) Bitcast 63
349                              Store 53(NumberOfLevelsI) 64
350              69:     68(ptr) AccessChain 66(ps_output) 33
351                              Store 69 67
352              70:8(PS_OUTPUT) Load 66(ps_output)
353                              ReturnValue 70
354                              FunctionEnd
355