5 0:26 Function Definition: @main(struct-VS_OUT-vf31[4];u1; (temp structure{temp 3-component vector of float cpoint})
6 0:26 Function Parameters:
7 0:26 'ip' (in 4-element array of structure{temp 3-component vector of float cpoint})
8 0:26 'm_cpid' (in uint)
10 0:28 move second child to first child (temp 3-component vector of float)
11 0:28 cpoint: direct index for structure (temp 3-component vector of float)
12 0:28 'output' (temp structure{temp 3-component vector of float cpoint})
15 0:28 cpoint: direct index for structure (temp 3-component vector of float)
16 0:28 direct index (temp structure{temp 3-component vector of float cpoint})
17 0:28 'ip' (in 4-element array of structure{temp 3-component vector of float cpoint})
22 0:29 Branch: Return with expression
23 0:29 'output' (temp structure{temp 3-component vector of float cpoint})
24 0:26 Function Definition: main( (temp void)
25 0:26 Function Parameters:
27 0:26 move second child to first child (temp 4-element array of structure{temp 3-component vector of float cpoint})
28 0:? 'ip' (temp 4-element array of structure{temp 3-component vector of float cpoint})
29 0:? 'ip' (layout(location=0 ) in 4-element array of structure{temp 3-component vector of float cpoint})
30 0:26 move second child to first child (temp uint)
31 0:? 'm_cpid' (temp uint)
32 0:? 'm_cpid' (in uint InvocationID)
33 0:26 move second child to first child (temp structure{temp 3-component vector of float cpoint})
34 0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 3-component vector of float cpoint})
35 0:26 Function Call: @main(struct-VS_OUT-vf31[4];u1; (temp structure{temp 3-component vector of float cpoint})
36 0:? 'ip' (temp 4-element array of structure{temp 3-component vector of float cpoint})
37 0:? 'm_cpid' (temp uint)
38 0:? Barrier (temp void)
39 0:? Test condition and select (temp void)
41 0:? Compare Equal (temp bool)
42 0:? 'm_cpid' (in uint InvocationID)
47 0:? move second child to first child (temp structure{temp 2-element array of float edges})
48 0:? '@patchConstantResult' (temp structure{temp 2-element array of float edges})
49 0:? Function Call: PCF(u1; (temp structure{temp 2-element array of float edges})
50 0:? 'pid' (in uint PrimitiveID)
52 0:? move second child to first child (temp float)
53 0:? direct index (out float TessLevelOuter)
54 0:? '@patchConstantOutput_edges' (out 2-element array of float TessLevelOuter)
57 0:? direct index (temp float)
58 0:? edges: direct index for structure (temp 2-element array of float)
59 0:? '@patchConstantResult' (temp structure{temp 2-element array of float edges})
64 0:? move second child to first child (temp float)
65 0:? direct index (out float TessLevelOuter)
66 0:? '@patchConstantOutput_edges' (out 2-element array of float TessLevelOuter)
69 0:? direct index (temp float)
70 0:? edges: direct index for structure (temp 2-element array of float)
71 0:? '@patchConstantResult' (temp structure{temp 2-element array of float edges})
76 0:33 Function Definition: PCF(u1; (temp structure{temp 2-element array of float edges})
77 0:33 Function Parameters:
80 0:36 move second child to first child (temp float)
81 0:36 direct index (temp float)
82 0:36 edges: direct index for structure (temp 2-element array of float)
83 0:36 'output' (temp structure{temp 2-element array of float edges})
90 0:37 move second child to first child (temp float)
91 0:37 direct index (temp float)
92 0:37 edges: direct index for structure (temp 2-element array of float)
93 0:37 'output' (temp structure{temp 2-element array of float edges})
100 0:38 Branch: Return with expression
101 0:38 'output' (temp structure{temp 2-element array of float edges})
103 0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 3-component vector of float cpoint})
104 0:? 'ip' (layout(location=0 ) in 4-element array of structure{temp 3-component vector of float cpoint})
105 0:? 'm_cpid' (in uint InvocationID)
106 0:? 'pid' (in uint PrimitiveID)
107 0:? '@patchConstantOutput_edges' (out 2-element array of float TessLevelOuter)
110 Linked tessellation control stage:
116 0:26 Function Definition: @main(struct-VS_OUT-vf31[4];u1; (temp structure{temp 3-component vector of float cpoint})
117 0:26 Function Parameters:
118 0:26 'ip' (in 4-element array of structure{temp 3-component vector of float cpoint})
119 0:26 'm_cpid' (in uint)
121 0:28 move second child to first child (temp 3-component vector of float)
122 0:28 cpoint: direct index for structure (temp 3-component vector of float)
123 0:28 'output' (temp structure{temp 3-component vector of float cpoint})
126 0:28 cpoint: direct index for structure (temp 3-component vector of float)
127 0:28 direct index (temp structure{temp 3-component vector of float cpoint})
128 0:28 'ip' (in 4-element array of structure{temp 3-component vector of float cpoint})
133 0:29 Branch: Return with expression
134 0:29 'output' (temp structure{temp 3-component vector of float cpoint})
135 0:26 Function Definition: main( (temp void)
136 0:26 Function Parameters:
138 0:26 move second child to first child (temp 4-element array of structure{temp 3-component vector of float cpoint})
139 0:? 'ip' (temp 4-element array of structure{temp 3-component vector of float cpoint})
140 0:? 'ip' (layout(location=0 ) in 4-element array of structure{temp 3-component vector of float cpoint})
141 0:26 move second child to first child (temp uint)
142 0:? 'm_cpid' (temp uint)
143 0:? 'm_cpid' (in uint InvocationID)
144 0:26 move second child to first child (temp structure{temp 3-component vector of float cpoint})
145 0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 3-component vector of float cpoint})
146 0:26 Function Call: @main(struct-VS_OUT-vf31[4];u1; (temp structure{temp 3-component vector of float cpoint})
147 0:? 'ip' (temp 4-element array of structure{temp 3-component vector of float cpoint})
148 0:? 'm_cpid' (temp uint)
149 0:? Barrier (temp void)
150 0:? Test condition and select (temp void)
152 0:? Compare Equal (temp bool)
153 0:? 'm_cpid' (in uint InvocationID)
158 0:? move second child to first child (temp structure{temp 2-element array of float edges})
159 0:? '@patchConstantResult' (temp structure{temp 2-element array of float edges})
160 0:? Function Call: PCF(u1; (temp structure{temp 2-element array of float edges})
161 0:? 'pid' (in uint PrimitiveID)
163 0:? move second child to first child (temp float)
164 0:? direct index (out float TessLevelOuter)
165 0:? '@patchConstantOutput_edges' (out 2-element array of float TessLevelOuter)
168 0:? direct index (temp float)
169 0:? edges: direct index for structure (temp 2-element array of float)
170 0:? '@patchConstantResult' (temp structure{temp 2-element array of float edges})
175 0:? move second child to first child (temp float)
176 0:? direct index (out float TessLevelOuter)
177 0:? '@patchConstantOutput_edges' (out 2-element array of float TessLevelOuter)
180 0:? direct index (temp float)
181 0:? edges: direct index for structure (temp 2-element array of float)
182 0:? '@patchConstantResult' (temp structure{temp 2-element array of float edges})
187 0:33 Function Definition: PCF(u1; (temp structure{temp 2-element array of float edges})
188 0:33 Function Parameters:
191 0:36 move second child to first child (temp float)
192 0:36 direct index (temp float)
193 0:36 edges: direct index for structure (temp 2-element array of float)
194 0:36 'output' (temp structure{temp 2-element array of float edges})
201 0:37 move second child to first child (temp float)
202 0:37 direct index (temp float)
203 0:37 edges: direct index for structure (temp 2-element array of float)
204 0:37 'output' (temp structure{temp 2-element array of float edges})
211 0:38 Branch: Return with expression
212 0:38 'output' (temp structure{temp 2-element array of float edges})
214 0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 3-component vector of float cpoint})
215 0:? 'ip' (layout(location=0 ) in 4-element array of structure{temp 3-component vector of float cpoint})
216 0:? 'm_cpid' (in uint InvocationID)
217 0:? 'pid' (in uint PrimitiveID)
218 0:? '@patchConstantOutput_edges' (out 2-element array of float TessLevelOuter)
220 // Module Version 10000
221 // Generated by (magic number): 80001
222 // Id's are bound by 85
224 Capability Tessellation
225 1: ExtInstImport "GLSL.std.450"
226 MemoryModel Logical GLSL450
227 EntryPoint TessellationControl 4 "main" 40 44 47 62 67
228 ExecutionMode 4 OutputVertices 4
231 MemberName 8(VS_OUT) 0 "cpoint"
233 MemberName 14(HS_OUT) 0 "cpoint"
234 Name 18 "@main(struct-VS_OUT-vf31[4];u1;"
237 Name 22 "HS_CONSTANT_OUT"
238 MemberName 22(HS_CONSTANT_OUT) 0 "edges"
246 Name 47 "@entryPointOutput"
249 Name 61 "@patchConstantResult"
252 Name 67 "@patchConstantOutput_edges"
254 Decorate 40(ip) Location 0
255 Decorate 44(m_cpid) BuiltIn InvocationId
256 Decorate 47(@entryPointOutput) Location 0
257 Decorate 62(pid) BuiltIn PrimitiveId
258 Decorate 67(@patchConstantOutput_edges) BuiltIn TessLevelOuter
262 7: TypeVector 6(float) 3
263 8(VS_OUT): TypeStruct 7(fvec3)
265 10: 9(int) Constant 4
266 11: TypeArray 8(VS_OUT) 10
267 12: TypePointer Function 11
268 13: TypePointer Function 9(int)
269 14(HS_OUT): TypeStruct 7(fvec3)
270 15: TypeFunction 14(HS_OUT) 12(ptr) 13(ptr)
271 20: 9(int) Constant 2
272 21: TypeArray 6(float) 20
273 22(HS_CONSTANT_OUT): TypeStruct 21
274 23: TypeFunction 22(HS_CONSTANT_OUT) 13(ptr)
275 27: TypePointer Function 14(HS_OUT)
277 30: 29(int) Constant 0
278 31: TypePointer Function 7(fvec3)
279 39: TypePointer Input 11
280 40(ip): 39(ptr) Variable Input
281 43: TypePointer Input 9(int)
282 44(m_cpid): 43(ptr) Variable Input
283 46: TypePointer Output 14(HS_OUT)
284 47(@entryPointOutput): 46(ptr) Variable Output
285 53: 9(int) Constant 1
286 54: 9(int) Constant 0
288 60: TypePointer Function 22(HS_CONSTANT_OUT)
289 62(pid): 43(ptr) Variable Input
290 66: TypePointer Output 21
291 67(@patchConstantOutput_edges): 66(ptr) Variable Output
292 68: TypePointer Function 6(float)
293 71: TypePointer Output 6(float)
294 73: 29(int) Constant 1
295 78: 6(float) Constant 1073741824
296 80: 6(float) Constant 1090519040
297 4(main): 2 Function None 3
299 38(ip): 12(ptr) Variable Function
300 42(m_cpid): 13(ptr) Variable Function
301 48(param): 12(ptr) Variable Function
302 50(param): 13(ptr) Variable Function
303 61(@patchConstantResult): 60(ptr) Variable Function
304 63(param): 13(ptr) Variable Function
307 45: 9(int) Load 44(m_cpid)
311 51: 9(int) Load 42(m_cpid)
313 52: 14(HS_OUT) FunctionCall 18(@main(struct-VS_OUT-vf31[4];u1;) 48(param) 50(param)
314 Store 47(@entryPointOutput) 52
315 ControlBarrier 20 53 54
316 55: 9(int) Load 44(m_cpid)
317 57: 56(bool) IEqual 55 30
318 SelectionMerge 59 None
319 BranchConditional 57 58 59
321 64: 9(int) Load 62(pid)
323 65:22(HS_CONSTANT_OUT) FunctionCall 25(PCF(u1;) 63(param)
324 Store 61(@patchConstantResult) 65
325 69: 68(ptr) AccessChain 61(@patchConstantResult) 30 30
327 72: 71(ptr) AccessChain 67(@patchConstantOutput_edges) 30
329 74: 68(ptr) AccessChain 61(@patchConstantResult) 30 73
331 76: 71(ptr) AccessChain 67(@patchConstantOutput_edges) 73
337 18(@main(struct-VS_OUT-vf31[4];u1;): 14(HS_OUT) Function None 15
338 16(ip): 12(ptr) FunctionParameter
339 17(m_cpid): 13(ptr) FunctionParameter
341 28(output): 27(ptr) Variable Function
342 32: 31(ptr) AccessChain 16(ip) 30 30
344 34: 31(ptr) AccessChain 28(output) 30
346 35: 14(HS_OUT) Load 28(output)
349 25(PCF(u1;):22(HS_CONSTANT_OUT) Function None 23
350 24(pid): 13(ptr) FunctionParameter
352 77(output): 60(ptr) Variable Function
353 79: 68(ptr) AccessChain 77(output) 30 30
355 81: 68(ptr) AccessChain 77(output) 30 73
357 82:22(HS_CONSTANT_OUT) Load 77(output)