• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.functionSemantics.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 156
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 76 152
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 400
12                              Name 4  "main"
13                              Name 15  "foo(i1;i1;i1;i1;i1;i1;"
14                              Name 9  "a"
15                              Name 10  "b"
16                              Name 11  "c"
17                              Name 12  "d"
18                              Name 13  "e"
19                              Name 14  "f"
20                              Name 25  "foo2(f1;vf3;i1;"
21                              Name 22  "a"
22                              Name 23  "b"
23                              Name 24  "r"
24                              Name 28  "foo3("
25                              Name 30  "sum"
26                              Name 76  "u"
27                              Name 89  "t"
28                              Name 92  "s"
29                              MemberName 92(s) 0  "t"
30                              Name 94  "f"
31                              Name 98  "color"
32                              Name 104  "e"
33                              Name 105  "param"
34                              Name 106  "param"
35                              Name 107  "param"
36                              Name 108  "param"
37                              Name 123  "ret"
38                              Name 125  "tempReturn"
39                              Name 130  "tempArg"
40                              Name 131  "param"
41                              Name 132  "param"
42                              Name 133  "param"
43                              Name 136  "arg"
44                              Name 152  "gl_FragColor"
45                              Decorate 76(u) Location 0
46                              Decorate 152(gl_FragColor) Location 0
47               2:             TypeVoid
48               3:             TypeFunction 2
49               6:             TypeInt 32 1
50               7:             TypePointer Function 6(int)
51               8:             TypeFunction 6(int) 7(ptr) 6(int) 7(ptr) 6(int) 7(ptr) 7(ptr)
52              17:             TypeFloat 32
53              18:             TypePointer Function 17(float)
54              19:             TypeVector 17(float) 3
55              20:             TypePointer Function 19(fvec3)
56              21:             TypeFunction 6(int) 18(ptr) 20(ptr) 7(ptr)
57              27:             TypeFunction 6(int)
58              38:      6(int) Constant 64
59              43:      6(int) Constant 1024
60              62:   17(float) Constant 1077936128
61              66:   17(float) Constant 1084227584
62              67:             TypeInt 32 0
63              68:     67(int) Constant 1
64              75:             TypePointer Input 17(float)
65           76(u):     75(ptr) Variable Input
66              78:   17(float) Constant 1078774989
67              79:             TypeBool
68              84:      6(int) Constant 1000000
69              86:      6(int) Constant 2000000
70              90:      6(int) Constant 2
71              91:             TypeVector 6(int) 4
72           92(s):             TypeStruct 91(ivec4)
73              93:             TypePointer Function 92(s)
74              95:      6(int) Constant 0
75              96:      6(int) Constant 32
76              99:      6(int) Constant 1
77             103:      6(int) Constant 8
78             115:      6(int) Constant 128
79             124:             TypePointer Private 6(int)
80 125(tempReturn):    124(ptr) Variable Private
81             126:   17(float) Constant 1082130432
82             127:   17(float) Constant 1065353216
83             128:   17(float) Constant 1073741824
84             129:   19(fvec3) ConstantComposite 127 128 62
85             150:             TypeVector 17(float) 4
86             151:             TypePointer Output 150(fvec4)
87152(gl_FragColor):    151(ptr) Variable Output
88         4(main):           2 Function None 3
89               5:             Label
90           89(t):      7(ptr) Variable Function
91           94(f):     93(ptr) Variable Function
92       98(color):      7(ptr) Variable Function
93          104(e):      7(ptr) Variable Function
94      105(param):      7(ptr) Variable Function
95      106(param):      7(ptr) Variable Function
96      107(param):      7(ptr) Variable Function
97      108(param):      7(ptr) Variable Function
98        123(ret):     18(ptr) Variable Function
99    130(tempArg):      7(ptr) Variable Function
100      131(param):     18(ptr) Variable Function
101      132(param):     20(ptr) Variable Function
102      133(param):      7(ptr) Variable Function
103        136(arg):     18(ptr) Variable Function
104                              Store 89(t) 90
105              97:      7(ptr) AccessChain 94(f) 95 68
106                              Store 97 96
107             100:      6(int) Load 89(t)
108             101:      6(int) Load 89(t)
109             102:      6(int) IAdd 100 101
110                              Store 105(param) 99
111                              Store 106(param) 102
112             109:      7(ptr) AccessChain 94(f) 95 68
113             110:      6(int) Load 109
114                              Store 108(param) 110
115             111:      6(int) FunctionCall 15(foo(i1;i1;i1;i1;i1;i1;) 105(param) 90 106(param) 103 107(param) 108(param)
116             112:      6(int) Load 107(param)
117                              Store 104(e) 112
118             113:      6(int) Load 108(param)
119             114:      7(ptr) AccessChain 94(f) 95 68
120                              Store 114 113
121                              Store 98(color) 111
122             116:      6(int) Load 104(e)
123             117:      7(ptr) AccessChain 94(f) 95 68
124             118:      6(int) Load 117
125             119:      6(int) IAdd 116 118
126             120:      6(int) IMul 115 119
127             121:      6(int) Load 98(color)
128             122:      6(int) IAdd 121 120
129                              Store 98(color) 122
130                              Store 131(param) 126
131                              Store 132(param) 129
132             134:      6(int) FunctionCall 25(foo2(f1;vf3;i1;) 131(param) 132(param) 133(param)
133             135:      6(int) Load 133(param)
134                              Store 130(tempArg) 135
135                              Store 125(tempReturn) 134
136             137:      6(int) Load 130(tempArg)
137             138:   17(float) ConvertSToF 137
138                              Store 136(arg) 138
139             139:      6(int) Load 125(tempReturn)
140             140:   17(float) ConvertSToF 139
141                              Store 123(ret) 140
142             141:   17(float) Load 123(ret)
143             142:   17(float) Load 136(arg)
144             143:   17(float) FAdd 141 142
145             144:      6(int) ConvertFToS 143
146             145:      6(int) Load 98(color)
147             146:      6(int) IAdd 145 144
148                              Store 98(color) 146
149             147:      6(int) FunctionCall 28(foo3()
150             148:      6(int) Load 98(color)
151             149:      6(int) IAdd 148 147
152                              Store 98(color) 149
153             153:      6(int) Load 98(color)
154             154:   17(float) ConvertSToF 153
155             155:  150(fvec4) CompositeConstruct 154 154 154 154
156                              Store 152(gl_FragColor) 155
157                              Return
158                              FunctionEnd
15915(foo(i1;i1;i1;i1;i1;i1;):      6(int) Function None 8
160            9(a):      7(ptr) FunctionParameter
161           10(b):      6(int) FunctionParameter
162           11(c):      7(ptr) FunctionParameter
163           12(d):      6(int) FunctionParameter
164           13(e):      7(ptr) FunctionParameter
165           14(f):      7(ptr) FunctionParameter
166              16:             Label
167         30(sum):      7(ptr) Variable Function
168              31:      6(int) Load 9(a)
169              32:      6(int) IAdd 31 10(b)
170              33:      6(int) Load 11(c)
171              34:      6(int) IAdd 32 33
172              35:      6(int) IAdd 34 12(d)
173              36:      6(int) Load 14(f)
174              37:      6(int) IAdd 35 36
175                              Store 30(sum) 37
176              39:      6(int) Load 9(a)
177              40:      6(int) IMul 39 38
178                              Store 9(a) 40
179              41:      6(int) Load 11(c)
180              42:      6(int) IMul 41 38
181                              Store 11(c) 42
182                              Store 13(e) 43
183              44:      6(int) Load 14(f)
184              45:      6(int) IMul 44 38
185                              Store 14(f) 45
186              46:      6(int) Load 9(a)
187              47:      6(int) IMul 38 10(b)
188              48:      6(int) IAdd 46 47
189              49:      6(int) Load 11(c)
190              50:      6(int) IAdd 48 49
191              51:      6(int) IMul 38 12(d)
192              52:      6(int) IAdd 50 51
193              53:      6(int) Load 13(e)
194              54:      6(int) IAdd 52 53
195              55:      6(int) Load 14(f)
196              56:      6(int) IAdd 54 55
197              57:      6(int) Load 30(sum)
198              58:      6(int) IAdd 57 56
199                              Store 30(sum) 58
200              59:      6(int) Load 30(sum)
201                              ReturnValue 59
202                              FunctionEnd
20325(foo2(f1;vf3;i1;):      6(int) Function None 21
204           22(a):     18(ptr) FunctionParameter
205           23(b):     20(ptr) FunctionParameter
206           24(r):      7(ptr) FunctionParameter
207              26:             Label
208              63:   17(float) Load 22(a)
209              64:   17(float) FMul 62 63
210              65:      6(int) ConvertFToS 64
211                              Store 24(r) 65
212              69:     18(ptr) AccessChain 23(b) 68
213              70:   17(float) Load 69
214              71:   17(float) FMul 66 70
215              72:      6(int) ConvertFToS 71
216                              ReturnValue 72
217                              FunctionEnd
218       28(foo3():      6(int) Function None 27
219              29:             Label
220              77:   17(float) Load 76(u)
221              80:    79(bool) FOrdGreaterThan 77 78
222                              SelectionMerge 82 None
223                              BranchConditional 80 81 82
224              81:               Label
225                                Kill
226              82:             Label
227                              ReturnValue 86
228                              FunctionEnd
229