3 gl_FragCoord origin is upper left
5 0:8 Function Definition: MyFunc(f1;f1;f1; ( temp void)
6 0:8 Function Parameters:
11 0:9 move second child to first child ( temp float)
14 0:10 move second child to first child ( temp float)
15 0:10 'z' ( inout float)
17 0:11 move second child to first child ( temp float)
21 0:15 Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
22 0:15 Function Parameters:
23 0:15 'inpos' ( in 4-component vector of float)
24 0:15 'sampleMask' ( out int)
27 0:18 move second child to first child ( temp float)
28 0:18 'x' ( temp float)
31 0:18 move second child to first child ( temp float)
32 0:18 'z' ( temp float)
35 0:19 Function Call: MyFunc(f1;f1;f1; ( temp void)
36 0:19 'x' ( temp float)
37 0:19 'y' ( temp float)
38 0:19 'z' ( temp float)
39 0:21 move second child to first child ( temp 4-component vector of float)
40 0:21 Color: direct index for structure ( temp 4-component vector of float)
41 0:21 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
44 0:? Construct vec4 ( temp 4-component vector of float)
45 0:21 'x' ( temp float)
46 0:21 'y' ( temp float)
47 0:21 'z' ( temp float)
50 0:22 move second child to first child ( temp float)
51 0:22 Depth: direct index for structure ( temp float)
52 0:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
55 0:22 direct index ( temp float)
56 0:22 'inpos' ( in 4-component vector of float)
59 0:24 Branch: Return with expression
60 0:24 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
61 0:15 Function Definition: main( ( temp void)
62 0:15 Function Parameters:
64 0:15 move second child to first child ( temp 4-component vector of float)
65 0:? 'inpos' ( temp 4-component vector of float)
66 0:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
68 0:15 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
69 0:15 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
70 0:15 Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
71 0:? 'inpos' ( temp 4-component vector of float)
72 0:? 'sampleMask' ( temp int)
73 0:15 move second child to first child ( temp 4-component vector of float)
74 0:? 'Color' (layout( location=0) out 4-component vector of float)
75 0:15 Color: direct index for structure ( temp 4-component vector of float)
76 0:15 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
79 0:15 move second child to first child ( temp float)
80 0:? 'Depth' ( out float FragDepth)
81 0:15 Depth: direct index for structure ( temp float)
82 0:15 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
85 0:15 move second child to first child ( temp int)
86 0:? 'sampleMask' ( out int SampleMaskIn)
87 0:? 'sampleMask' ( temp int)
89 0:? 'Color' (layout( location=0) out 4-component vector of float)
90 0:? 'Depth' ( out float FragDepth)
91 0:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
92 0:? 'sampleMask' ( out int SampleMaskIn)
95 Linked fragment stage:
99 gl_FragCoord origin is upper left
101 0:8 Function Definition: MyFunc(f1;f1;f1; ( temp void)
102 0:8 Function Parameters:
105 0:8 'z' ( inout float)
107 0:9 move second child to first child ( temp float)
110 0:10 move second child to first child ( temp float)
111 0:10 'z' ( inout float)
112 0:10 'y' ( out float)
113 0:11 move second child to first child ( temp float)
117 0:15 Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
118 0:15 Function Parameters:
119 0:15 'inpos' ( in 4-component vector of float)
120 0:15 'sampleMask' ( out int)
123 0:18 move second child to first child ( temp float)
124 0:18 'x' ( temp float)
127 0:18 move second child to first child ( temp float)
128 0:18 'z' ( temp float)
131 0:19 Function Call: MyFunc(f1;f1;f1; ( temp void)
132 0:19 'x' ( temp float)
133 0:19 'y' ( temp float)
134 0:19 'z' ( temp float)
135 0:21 move second child to first child ( temp 4-component vector of float)
136 0:21 Color: direct index for structure ( temp 4-component vector of float)
137 0:21 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
140 0:? Construct vec4 ( temp 4-component vector of float)
141 0:21 'x' ( temp float)
142 0:21 'y' ( temp float)
143 0:21 'z' ( temp float)
146 0:22 move second child to first child ( temp float)
147 0:22 Depth: direct index for structure ( temp float)
148 0:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
151 0:22 direct index ( temp float)
152 0:22 'inpos' ( in 4-component vector of float)
155 0:24 Branch: Return with expression
156 0:24 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
157 0:15 Function Definition: main( ( temp void)
158 0:15 Function Parameters:
160 0:15 move second child to first child ( temp 4-component vector of float)
161 0:? 'inpos' ( temp 4-component vector of float)
162 0:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
164 0:15 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
165 0:15 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
166 0:15 Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
167 0:? 'inpos' ( temp 4-component vector of float)
168 0:? 'sampleMask' ( temp int)
169 0:15 move second child to first child ( temp 4-component vector of float)
170 0:? 'Color' (layout( location=0) out 4-component vector of float)
171 0:15 Color: direct index for structure ( temp 4-component vector of float)
172 0:15 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
175 0:15 move second child to first child ( temp float)
176 0:? 'Depth' ( out float FragDepth)
177 0:15 Depth: direct index for structure ( temp float)
178 0:15 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
181 0:15 move second child to first child ( temp int)
182 0:? 'sampleMask' ( out int SampleMaskIn)
183 0:? 'sampleMask' ( temp int)
185 0:? 'Color' (layout( location=0) out 4-component vector of float)
186 0:? 'Depth' ( out float FragDepth)
187 0:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
188 0:? 'sampleMask' ( out int SampleMaskIn)
190 // Module Version 10000
191 // Generated by (magic number): 80001
192 // Id's are bound by 80
195 Capability SampleRateShading
196 1: ExtInstImport "GLSL.std.450"
197 MemoryModel Logical GLSL450
198 EntryPoint Fragment 4 "main" 60 70 74 78
199 ExecutionMode 4 OriginUpperLeft
201 Name 12 "MyFunc(f1;f1;f1;"
206 MemberName 18(PS_OUTPUT) 0 "Color"
207 MemberName 18(PS_OUTPUT) 1 "Depth"
208 Name 22 "@main(vf4;i1;"
220 Name 62 "flattenTemp"
227 Decorate 60(inpos) NoPerspective
228 Decorate 60(inpos) BuiltIn FragCoord
229 Decorate 70(Color) Location 0
230 Decorate 74(Depth) BuiltIn FragDepth
231 Decorate 78(sampleMask) BuiltIn SampleMask
235 7: TypePointer Function 6(float)
236 8: TypeFunction 2 7(ptr) 7(ptr) 7(ptr)
237 14: TypeVector 6(float) 4
238 15: TypePointer Function 14(fvec4)
240 17: TypePointer Function 16(int)
241 18(PS_OUTPUT): TypeStruct 14(fvec4) 6(float)
242 19: TypeFunction 18(PS_OUTPUT) 15(ptr) 17(ptr)
243 26: 6(float) Constant 3212836864
244 28: 6(float) Constant 1088421888
245 30: 6(float) Constant 1077936128
246 40: TypePointer Function 18(PS_OUTPUT)
247 42: 16(int) Constant 0
248 46: 6(float) Constant 1065353216
249 49: 16(int) Constant 1
251 51: 50(int) Constant 3
252 59: TypePointer Input 14(fvec4)
253 60(inpos): 59(ptr) Variable Input
254 69: TypePointer Output 14(fvec4)
255 70(Color): 69(ptr) Variable Output
256 73: TypePointer Output 6(float)
257 74(Depth): 73(ptr) Variable Output
258 77: TypePointer Output 16(int)
259 78(sampleMask): 77(ptr) Variable Output
260 4(main): 2 Function None 3
262 58(inpos): 15(ptr) Variable Function
263 62(flattenTemp): 40(ptr) Variable Function
264 63(sampleMask): 17(ptr) Variable Function
265 64(param): 15(ptr) Variable Function
266 66(param): 17(ptr) Variable Function
267 61: 14(fvec4) Load 60(inpos)
269 65: 14(fvec4) Load 58(inpos)
271 67:18(PS_OUTPUT) FunctionCall 22(@main(vf4;i1;) 64(param) 66(param)
272 68: 16(int) Load 66(param)
273 Store 63(sampleMask) 68
274 Store 62(flattenTemp) 67
275 71: 15(ptr) AccessChain 62(flattenTemp) 42
276 72: 14(fvec4) Load 71
278 75: 7(ptr) AccessChain 62(flattenTemp) 49
281 79: 16(int) Load 63(sampleMask)
282 Store 78(sampleMask) 79
285 12(MyFunc(f1;f1;f1;): 2 Function None 8
286 9(x): 7(ptr) FunctionParameter
287 10(y): 7(ptr) FunctionParameter
288 11(z): 7(ptr) FunctionParameter
290 24: 6(float) Load 9(x)
292 25: 6(float) Load 10(y)
297 22(@main(vf4;i1;):18(PS_OUTPUT) Function None 19
298 20(inpos): 15(ptr) FunctionParameter
299 21(sampleMask): 17(ptr) FunctionParameter
301 27(x): 7(ptr) Variable Function
302 29(z): 7(ptr) Variable Function
303 31(y): 7(ptr) Variable Function
304 32(param): 7(ptr) Variable Function
305 34(param): 7(ptr) Variable Function
306 35(param): 7(ptr) Variable Function
307 41(psout): 40(ptr) Variable Function
310 33: 6(float) Load 27(x)
312 36: 6(float) Load 29(z)
314 37: 2 FunctionCall 12(MyFunc(f1;f1;f1;) 32(param) 34(param) 35(param)
315 38: 6(float) Load 34(param)
317 39: 6(float) Load 35(param)
319 43: 6(float) Load 27(x)
320 44: 6(float) Load 31(y)
321 45: 6(float) Load 29(z)
322 47: 14(fvec4) CompositeConstruct 43 44 45 46
323 48: 15(ptr) AccessChain 41(psout) 42
325 52: 7(ptr) AccessChain 20(inpos) 51
327 54: 7(ptr) AccessChain 41(psout) 49
329 55:18(PS_OUTPUT) Load 41(psout)