1 spv.functionSemantics.frag
2 // Module Version 10000
3 // Generated by (magic number): 8000a
4 // Id's are bound by 156
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
9 EntryPoint Fragment 4 "main" 76 152
10 ExecutionMode 4 OriginUpperLeft
13 Name 15 "foo(i1;i1;i1;i1;i1;i1;"
20 Name 25 "foo2(f1;vf3;i1;"
29 MemberName 92(s) 0 "t"
44 Name 152 "gl_FragColor"
45 Decorate 76(u) Location 0
46 Decorate 152(gl_FragColor) Location 0
50 7: TypePointer Function 6(int)
51 8: TypeFunction 6(int) 7(ptr) 6(int) 7(ptr) 6(int) 7(ptr) 7(ptr)
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
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
68 84: 6(int) Constant 1000000
69 86: 6(int) Constant 2000000
71 91: TypeVector 6(int) 4
72 92(s): TypeStruct 91(ivec4)
73 93: TypePointer Function 92(s)
75 96: 6(int) Constant 32
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)
87 152(gl_FragColor): 151(ptr) Variable Output
88 4(main): 2 Function None 3
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
105 97: 7(ptr) AccessChain 94(f) 95 68
107 100: 6(int) Load 89(t)
108 101: 6(int) Load 89(t)
109 102: 6(int) IAdd 100 101
112 109: 7(ptr) AccessChain 94(f) 95 68
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)
118 113: 6(int) Load 108(param)
119 114: 7(ptr) AccessChain 94(f) 95 68
122 116: 6(int) Load 104(e)
123 117: 7(ptr) AccessChain 94(f) 95 68
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
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
139 139: 6(int) Load 125(tempReturn)
140 140: 17(float) ConvertSToF 139
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
149 147: 6(int) FunctionCall 28(foo3()
150 148: 6(int) Load 98(color)
151 149: 6(int) IAdd 148 147
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
159 15(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
167 30(sum): 7(ptr) Variable Function
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
177 40: 6(int) IMul 39 38
179 41: 6(int) Load 11(c)
180 42: 6(int) IMul 41 38
183 44: 6(int) Load 14(f)
184 45: 6(int) IMul 44 38
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
200 59: 6(int) Load 30(sum)
203 25(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
208 63: 17(float) Load 22(a)
209 64: 17(float) FMul 62 63
210 65: 6(int) ConvertFToS 64
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
218 28(foo3(): 6(int) Function None 27
220 77: 17(float) Load 76(u)
221 80: 79(bool) FOrdGreaterThan 77 78
222 SelectionMerge 82 None
223 BranchConditional 80 81 82