1hlsl.promote.binary.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:14  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
60:14    Function Parameters:
70:?     Sequence
80:15      mod ( temp float)
90:15        Convert int to float ( temp float)
100:15          ival: direct index for structure ( uniform int)
110:15            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
120:15            Constant:
130:15              2 (const uint)
140:15        fval: direct index for structure ( uniform float)
150:15          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
160:15          Constant:
170:15            4 (const uint)
180:16      mod ( temp 4-component vector of float)
190:16        Convert int to float ( temp 4-component vector of float)
200:16          ival4: direct index for structure ( uniform 4-component vector of int)
210:16            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
220:16            Constant:
230:16              3 (const uint)
240:16        fval4: direct index for structure ( uniform 4-component vector of float)
250:16          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
260:16          Constant:
270:16            5 (const uint)
280:18      mod ( temp float)
290:18        Convert bool to float ( temp float)
300:18          bval: direct index for structure ( uniform bool)
310:18            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
320:18            Constant:
330:18              0 (const uint)
340:18        fval: direct index for structure ( uniform float)
350:18          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
360:18          Constant:
370:18            4 (const uint)
380:19      mod ( temp 4-component vector of float)
390:19        Convert bool to float ( temp 4-component vector of float)
400:19          bval4: direct index for structure ( uniform 4-component vector of bool)
410:19            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
420:19            Constant:
430:19              1 (const uint)
440:19        fval4: direct index for structure ( uniform 4-component vector of float)
450:19          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
460:19          Constant:
470:19            5 (const uint)
480:21      Sequence
490:21        move second child to first child ( temp int)
500:21          'l_int' ( temp int)
510:21          Constant:
520:21            1 (const int)
530:22      mod second child into first child ( temp int)
540:22        'l_int' ( temp int)
550:22        Convert float to int ( temp int)
560:22          fval: direct index for structure ( uniform float)
570:22            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
580:22            Constant:
590:22              4 (const uint)
600:25      move second child to first child ( temp 4-component vector of float)
610:25        Color: direct index for structure ( temp 4-component vector of float)
620:25          'psout' ( temp structure{ temp 4-component vector of float Color})
630:25          Constant:
640:25            0 (const int)
650:25        Constant:
660:25          0.000000
670:25          0.000000
680:25          0.000000
690:25          0.000000
700:26      Branch: Return with expression
710:26        'psout' ( temp structure{ temp 4-component vector of float Color})
720:14  Function Definition: main( ( temp void)
730:14    Function Parameters:
740:?     Sequence
750:14      Sequence
760:14        move second child to first child ( temp 4-component vector of float)
770:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
780:14          Color: direct index for structure ( temp 4-component vector of float)
790:14            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
800:14            Constant:
810:14              0 (const int)
820:?   Linker Objects
830:?     'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
840:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
85
86
87Linked fragment stage:
88
89
90Shader version: 500
91gl_FragCoord origin is upper left
920:? Sequence
930:14  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
940:14    Function Parameters:
950:?     Sequence
960:15      mod ( temp float)
970:15        Convert int to float ( temp float)
980:15          ival: direct index for structure ( uniform int)
990:15            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1000:15            Constant:
1010:15              2 (const uint)
1020:15        fval: direct index for structure ( uniform float)
1030:15          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1040:15          Constant:
1050:15            4 (const uint)
1060:16      mod ( temp 4-component vector of float)
1070:16        Convert int to float ( temp 4-component vector of float)
1080:16          ival4: direct index for structure ( uniform 4-component vector of int)
1090:16            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1100:16            Constant:
1110:16              3 (const uint)
1120:16        fval4: direct index for structure ( uniform 4-component vector of float)
1130:16          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1140:16          Constant:
1150:16            5 (const uint)
1160:18      mod ( temp float)
1170:18        Convert bool to float ( temp float)
1180:18          bval: direct index for structure ( uniform bool)
1190:18            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1200:18            Constant:
1210:18              0 (const uint)
1220:18        fval: direct index for structure ( uniform float)
1230:18          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1240:18          Constant:
1250:18            4 (const uint)
1260:19      mod ( temp 4-component vector of float)
1270:19        Convert bool to float ( temp 4-component vector of float)
1280:19          bval4: direct index for structure ( uniform 4-component vector of bool)
1290:19            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1300:19            Constant:
1310:19              1 (const uint)
1320:19        fval4: direct index for structure ( uniform 4-component vector of float)
1330:19          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1340:19          Constant:
1350:19            5 (const uint)
1360:21      Sequence
1370:21        move second child to first child ( temp int)
1380:21          'l_int' ( temp int)
1390:21          Constant:
1400:21            1 (const int)
1410:22      mod second child into first child ( temp int)
1420:22        'l_int' ( temp int)
1430:22        Convert float to int ( temp int)
1440:22          fval: direct index for structure ( uniform float)
1450:22            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1460:22            Constant:
1470:22              4 (const uint)
1480:25      move second child to first child ( temp 4-component vector of float)
1490:25        Color: direct index for structure ( temp 4-component vector of float)
1500:25          'psout' ( temp structure{ temp 4-component vector of float Color})
1510:25          Constant:
1520:25            0 (const int)
1530:25        Constant:
1540:25          0.000000
1550:25          0.000000
1560:25          0.000000
1570:25          0.000000
1580:26      Branch: Return with expression
1590:26        'psout' ( temp structure{ temp 4-component vector of float Color})
1600:14  Function Definition: main( ( temp void)
1610:14    Function Parameters:
1620:?     Sequence
1630:14      Sequence
1640:14        move second child to first child ( temp 4-component vector of float)
1650:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1660:14          Color: direct index for structure ( temp 4-component vector of float)
1670:14            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
1680:14            Constant:
1690:14              0 (const int)
1700:?   Linker Objects
1710:?     'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1720:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
173
174// Module Version 10000
175// Generated by (magic number): 80007
176// Id's are bound by 83
177
178                              Capability Shader
179               1:             ExtInstImport  "GLSL.std.450"
180                              MemoryModel Logical GLSL450
181                              EntryPoint Fragment 4  "main" 80
182                              ExecutionMode 4 OriginUpperLeft
183                              Source HLSL 500
184                              Name 4  "main"
185                              Name 8  "PS_OUTPUT"
186                              MemberName 8(PS_OUTPUT) 0  "Color"
187                              Name 10  "@main("
188                              Name 16  "$Global"
189                              MemberName 16($Global) 0  "bval"
190                              MemberName 16($Global) 1  "bval4"
191                              MemberName 16($Global) 2  "ival"
192                              MemberName 16($Global) 3  "ival4"
193                              MemberName 16($Global) 4  "fval"
194                              MemberName 16($Global) 5  "fval4"
195                              Name 18  ""
196                              Name 66  "l_int"
197                              Name 73  "psout"
198                              Name 80  "@entryPointOutput.Color"
199                              MemberDecorate 16($Global) 0 Offset 0
200                              MemberDecorate 16($Global) 1 Offset 16
201                              MemberDecorate 16($Global) 2 Offset 32
202                              MemberDecorate 16($Global) 3 Offset 48
203                              MemberDecorate 16($Global) 4 Offset 64
204                              MemberDecorate 16($Global) 5 Offset 80
205                              Decorate 16($Global) Block
206                              Decorate 18 DescriptorSet 0
207                              Decorate 80(@entryPointOutput.Color) Location 0
208               2:             TypeVoid
209               3:             TypeFunction 2
210               6:             TypeFloat 32
211               7:             TypeVector 6(float) 4
212    8(PS_OUTPUT):             TypeStruct 7(fvec4)
213               9:             TypeFunction 8(PS_OUTPUT)
214              12:             TypeInt 32 0
215              13:             TypeVector 12(int) 4
216              14:             TypeInt 32 1
217              15:             TypeVector 14(int) 4
218     16($Global):             TypeStruct 12(int) 13(ivec4) 14(int) 15(ivec4) 6(float) 7(fvec4)
219              17:             TypePointer Uniform 16($Global)
220              18:     17(ptr) Variable Uniform
221              19:     14(int) Constant 2
222              20:             TypePointer Uniform 14(int)
223              24:     14(int) Constant 4
224              25:             TypePointer Uniform 6(float)
225              29:     14(int) Constant 3
226              30:             TypePointer Uniform 15(ivec4)
227              34:     14(int) Constant 5
228              35:             TypePointer Uniform 7(fvec4)
229              39:     14(int) Constant 0
230              40:             TypePointer Uniform 12(int)
231              43:             TypeBool
232              44:     12(int) Constant 0
233              46:    6(float) Constant 0
234              47:    6(float) Constant 1065353216
235              52:     14(int) Constant 1
236              53:             TypePointer Uniform 13(ivec4)
237              56:             TypeVector 43(bool) 4
238              57:   13(ivec4) ConstantComposite 44 44 44 44
239              59:    7(fvec4) ConstantComposite 46 46 46 46
240              60:    7(fvec4) ConstantComposite 47 47 47 47
241              65:             TypePointer Function 14(int)
242              72:             TypePointer Function 8(PS_OUTPUT)
243              74:             TypePointer Function 7(fvec4)
244              79:             TypePointer Output 7(fvec4)
24580(@entryPointOutput.Color):     79(ptr) Variable Output
246         4(main):           2 Function None 3
247               5:             Label
248              81:8(PS_OUTPUT) FunctionCall 10(@main()
249              82:    7(fvec4) CompositeExtract 81 0
250                              Store 80(@entryPointOutput.Color) 82
251                              Return
252                              FunctionEnd
253      10(@main():8(PS_OUTPUT) Function None 9
254              11:             Label
255       66(l_int):     65(ptr) Variable Function
256       73(psout):     72(ptr) Variable Function
257              21:     20(ptr) AccessChain 18 19
258              22:     14(int) Load 21
259              23:    6(float) ConvertSToF 22
260              26:     25(ptr) AccessChain 18 24
261              27:    6(float) Load 26
262              28:    6(float) FMod 23 27
263              31:     30(ptr) AccessChain 18 29
264              32:   15(ivec4) Load 31
265              33:    7(fvec4) ConvertSToF 32
266              36:     35(ptr) AccessChain 18 34
267              37:    7(fvec4) Load 36
268              38:    7(fvec4) FMod 33 37
269              41:     40(ptr) AccessChain 18 39
270              42:     12(int) Load 41
271              45:    43(bool) INotEqual 42 44
272              48:    6(float) Select 45 47 46
273              49:     25(ptr) AccessChain 18 24
274              50:    6(float) Load 49
275              51:    6(float) FMod 48 50
276              54:     53(ptr) AccessChain 18 52
277              55:   13(ivec4) Load 54
278              58:   56(bvec4) INotEqual 55 57
279              61:    7(fvec4) Select 58 60 59
280              62:     35(ptr) AccessChain 18 34
281              63:    7(fvec4) Load 62
282              64:    7(fvec4) FMod 61 63
283                              Store 66(l_int) 52
284              67:     25(ptr) AccessChain 18 24
285              68:    6(float) Load 67
286              69:     14(int) ConvertFToS 68
287              70:     14(int) Load 66(l_int)
288              71:     14(int) SMod 70 69
289                              Store 66(l_int) 71
290              75:     74(ptr) AccessChain 73(psout) 39
291                              Store 75 59
292              76:8(PS_OUTPUT) Load 73(psout)
293                              ReturnValue 76
294                              FunctionEnd
295