• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.flowControl.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 39
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 11 14 17 19 25 30 35
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 140
12                              Name 4  "main"
13                              Name 9  "color"
14                              Name 11  "BaseColor"
15                              Name 13  "color2"
16                              Name 14  "otherColor"
17                              Name 17  "c"
18                              Name 19  "d"
19                              Name 25  "bigColor"
20                              Name 30  "smallColor"
21                              Name 35  "gl_FragColor"
22                              Decorate 11(BaseColor) Location 5
23                              Decorate 14(otherColor) Location 3
24                              Decorate 17(c) Location 4
25                              Decorate 19(d) Location 0
26                              Decorate 25(bigColor) Location 1
27                              Decorate 30(smallColor) Location 2
28                              Decorate 35(gl_FragColor) Location 0
29               2:             TypeVoid
30               3:             TypeFunction 2
31               6:             TypeFloat 32
32               7:             TypeVector 6(float) 4
33               8:             TypePointer Function 7(fvec4)
34              10:             TypePointer Input 7(fvec4)
35   11(BaseColor):     10(ptr) Variable Input
36  14(otherColor):     10(ptr) Variable Input
37              16:             TypePointer Input 6(float)
38           17(c):     16(ptr) Variable Input
39           19(d):     16(ptr) Variable Input
40              21:             TypeBool
41    25(bigColor):     10(ptr) Variable Input
42  30(smallColor):     10(ptr) Variable Input
43              34:             TypePointer Output 7(fvec4)
4435(gl_FragColor):     34(ptr) Variable Output
45         4(main):           2 Function None 3
46               5:             Label
47        9(color):      8(ptr) Variable Function
48      13(color2):      8(ptr) Variable Function
49              12:    7(fvec4) Load 11(BaseColor)
50                              Store 9(color) 12
51              15:    7(fvec4) Load 14(otherColor)
52                              Store 13(color2) 15
53              18:    6(float) Load 17(c)
54              20:    6(float) Load 19(d)
55              22:    21(bool) FOrdGreaterThan 18 20
56                              SelectionMerge 24 None
57                              BranchConditional 22 23 29
58              23:               Label
59              26:    7(fvec4)   Load 25(bigColor)
60              27:    7(fvec4)   Load 9(color)
61              28:    7(fvec4)   FAdd 27 26
62                                Store 9(color) 28
63                                Branch 24
64              29:               Label
65              31:    7(fvec4)   Load 30(smallColor)
66              32:    7(fvec4)   Load 9(color)
67              33:    7(fvec4)   FAdd 32 31
68                                Store 9(color) 33
69                                Branch 24
70              24:             Label
71              36:    7(fvec4) Load 9(color)
72              37:    7(fvec4) Load 13(color2)
73              38:    7(fvec4) FMul 36 37
74                              Store 35(gl_FragColor) 38
75                              Return
76                              FunctionEnd
77