• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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): 8000a
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 18 Binding 0
208                              Decorate 80(@entryPointOutput.Color) Location 0
209               2:             TypeVoid
210               3:             TypeFunction 2
211               6:             TypeFloat 32
212               7:             TypeVector 6(float) 4
213    8(PS_OUTPUT):             TypeStruct 7(fvec4)
214               9:             TypeFunction 8(PS_OUTPUT)
215              12:             TypeInt 32 0
216              13:             TypeVector 12(int) 4
217              14:             TypeInt 32 1
218              15:             TypeVector 14(int) 4
219     16($Global):             TypeStruct 12(int) 13(ivec4) 14(int) 15(ivec4) 6(float) 7(fvec4)
220              17:             TypePointer Uniform 16($Global)
221              18:     17(ptr) Variable Uniform
222              19:     14(int) Constant 2
223              20:             TypePointer Uniform 14(int)
224              24:     14(int) Constant 4
225              25:             TypePointer Uniform 6(float)
226              29:     14(int) Constant 3
227              30:             TypePointer Uniform 15(ivec4)
228              34:     14(int) Constant 5
229              35:             TypePointer Uniform 7(fvec4)
230              39:     14(int) Constant 0
231              40:             TypePointer Uniform 12(int)
232              43:             TypeBool
233              44:     12(int) Constant 0
234              46:    6(float) Constant 0
235              47:    6(float) Constant 1065353216
236              52:     14(int) Constant 1
237              53:             TypePointer Uniform 13(ivec4)
238              56:             TypeVector 43(bool) 4
239              57:   13(ivec4) ConstantComposite 44 44 44 44
240              59:    7(fvec4) ConstantComposite 46 46 46 46
241              60:    7(fvec4) ConstantComposite 47 47 47 47
242              65:             TypePointer Function 14(int)
243              72:             TypePointer Function 8(PS_OUTPUT)
244              74:             TypePointer Function 7(fvec4)
245              79:             TypePointer Output 7(fvec4)
24680(@entryPointOutput.Color):     79(ptr) Variable Output
247         4(main):           2 Function None 3
248               5:             Label
249              81:8(PS_OUTPUT) FunctionCall 10(@main()
250              82:    7(fvec4) CompositeExtract 81 0
251                              Store 80(@entryPointOutput.Color) 82
252                              Return
253                              FunctionEnd
254      10(@main():8(PS_OUTPUT) Function None 9
255              11:             Label
256       66(l_int):     65(ptr) Variable Function
257       73(psout):     72(ptr) Variable Function
258              21:     20(ptr) AccessChain 18 19
259              22:     14(int) Load 21
260              23:    6(float) ConvertSToF 22
261              26:     25(ptr) AccessChain 18 24
262              27:    6(float) Load 26
263              28:    6(float) FMod 23 27
264              31:     30(ptr) AccessChain 18 29
265              32:   15(ivec4) Load 31
266              33:    7(fvec4) ConvertSToF 32
267              36:     35(ptr) AccessChain 18 34
268              37:    7(fvec4) Load 36
269              38:    7(fvec4) FMod 33 37
270              41:     40(ptr) AccessChain 18 39
271              42:     12(int) Load 41
272              45:    43(bool) INotEqual 42 44
273              48:    6(float) Select 45 47 46
274              49:     25(ptr) AccessChain 18 24
275              50:    6(float) Load 49
276              51:    6(float) FMod 48 50
277              54:     53(ptr) AccessChain 18 52
278              55:   13(ivec4) Load 54
279              58:   56(bvec4) INotEqual 55 57
280              61:    7(fvec4) Select 58 60 59
281              62:     35(ptr) AccessChain 18 34
282              63:    7(fvec4) Load 62
283              64:    7(fvec4) FMod 61 63
284                              Store 66(l_int) 52
285              67:     25(ptr) AccessChain 18 24
286              68:    6(float) Load 67
287              69:     14(int) ConvertFToS 68
288              70:     14(int) Load 66(l_int)
289              71:     14(int) SMod 70 69
290                              Store 66(l_int) 71
291              75:     74(ptr) AccessChain 73(psout) 39
292                              Store 75 59
293              76:8(PS_OUTPUT) Load 73(psout)
294                              ReturnValue 76
295                              FunctionEnd
296