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