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 156
13 1: ExtInstImport "GLSL.std.450"
14 MemoryModel Logical GLSL450
15 EntryPoint Fragment 4 "main" 152
16 ExecutionMode 4 OriginLowerLeft
19 Name 15 "foo(i1;i1;i1;i1;i1;i1;"
26 Name 25 "foo2(f1;vf3;i1;"
35 MemberName 92(s) 0 "t"
50 Name 152 "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 62: 17(float) Constant 1077936128
65 66: 17(float) Constant 1084227584
67 68: 67(int) Constant 1
68 75: TypePointer UniformConstant 17(float)
69 76(u): 75(ptr) Variable UniformConstant
70 78: 17(float) Constant 1078774989
72 84: 6(int) Constant 1000000
73 86: 6(int) Constant 2000000
75 91: TypeVector 6(int) 4
76 92(s): TypeStruct 91(ivec4)
77 93: TypePointer Function 92(s)
79 96: 6(int) Constant 32
81 103: 6(int) Constant 8
82 115: 6(int) Constant 128
83 124: TypePointer Private 6(int)
84 125(tempReturn): 124(ptr) Variable Private
85 126: 17(float) Constant 1082130432
86 127: 17(float) Constant 1065353216
87 128: 17(float) Constant 1073741824
88 129: 19(fvec3) ConstantComposite 127 128 62
89 150: TypeVector 17(float) 4
90 151: TypePointer Output 150(fvec4)
91 152(gl_FragColor): 151(ptr) Variable Output
92 4(main): 2 Function None 3
94 89(t): 7(ptr) Variable Function
95 94(f): 93(ptr) Variable Function
96 98(color): 7(ptr) Variable Function
97 104(e): 7(ptr) Variable Function
98 105(param): 7(ptr) Variable Function
99 106(param): 7(ptr) Variable Function
100 107(param): 7(ptr) Variable Function
101 108(param): 7(ptr) Variable Function
102 123(ret): 18(ptr) Variable Function
103 130(tempArg): 7(ptr) Variable Function
104 131(param): 18(ptr) Variable Function
105 132(param): 20(ptr) Variable Function
106 133(param): 7(ptr) Variable Function
107 136(arg): 18(ptr) Variable Function
109 97: 7(ptr) AccessChain 94(f) 95 68
111 100: 6(int) Load 89(t)
112 101: 6(int) Load 89(t)
113 102: 6(int) IAdd 100 101
116 109: 7(ptr) AccessChain 94(f) 95 68
119 111: 6(int) FunctionCall 15(foo(i1;i1;i1;i1;i1;i1;) 105(param) 90 106(param) 103 107(param) 108(param)
120 112: 6(int) Load 107(param)
122 113: 6(int) Load 108(param)
123 114: 7(ptr) AccessChain 94(f) 95 68
126 116: 6(int) Load 104(e)
127 117: 7(ptr) AccessChain 94(f) 95 68
129 119: 6(int) IAdd 116 118
130 120: 6(int) IMul 115 119
131 121: 6(int) Load 98(color)
132 122: 6(int) IAdd 121 120
136 134: 6(int) FunctionCall 25(foo2(f1;vf3;i1;) 131(param) 132(param) 133(param)
137 135: 6(int) Load 133(param)
138 Store 130(tempArg) 135
139 Store 125(tempReturn) 134
140 137: 6(int) Load 130(tempArg)
141 138: 17(float) ConvertSToF 137
143 139: 6(int) Load 125(tempReturn)
144 140: 17(float) ConvertSToF 139
146 141: 17(float) Load 123(ret)
147 142: 17(float) Load 136(arg)
148 143: 17(float) FAdd 141 142
149 144: 6(int) ConvertFToS 143
150 145: 6(int) Load 98(color)
151 146: 6(int) IAdd 145 144
153 147: 6(int) FunctionCall 28(foo3()
154 148: 6(int) Load 98(color)
155 149: 6(int) IAdd 148 147
157 153: 6(int) Load 98(color)
158 154: 17(float) ConvertSToF 153
159 155: 150(fvec4) CompositeConstruct 154 154 154 154
160 Store 152(gl_FragColor) 155
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 63: 17(float) Load 22(a)
213 64: 17(float) FMul 62 63
214 65: 6(int) ConvertFToS 64
216 69: 18(ptr) AccessChain 23(b) 68
217 70: 17(float) Load 69
218 71: 17(float) FMul 66 70
219 72: 6(int) ConvertFToS 71
222 28(foo3(): 6(int) Function None 27
224 77: 17(float) Load 76(u)
225 80: 79(bool) FOrdGreaterThan 77 78
226 SelectionMerge 82 None
227 BranchConditional 80 81 82