blob: 0d93e8d9f3e85b8e474cedb986830be82da417b2 [file] [log] [blame]
John Kessenich119f8f62016-06-05 15:44:07 -06001hlsl.doLoop.frag
John Kessenich6fa17642017-04-07 15:33:08 -06002Shader version: 500
John Kessenich119f8f62016-06-05 15:44:07 -06003gl_FragCoord origin is upper left
40:? Sequence
David Neto8c3d5b42019-10-21 14:50:31 -040050:1 Function Definition: f0( ( temp void)
60:1 Function Parameters:
John Kessenich119f8f62016-06-05 15:44:07 -060070:? Sequence
David Neto8c3d5b42019-10-21 14:50:31 -040080:2 Loop with condition not tested first: Unroll
90:2 Loop Condition
100:2 Constant:
110:2 false (const bool)
120:2 No loop body
130:5 Function Definition: f1( ( temp void)
140:5 Function Parameters:
150:? Sequence
160:6 Loop with condition not tested first: Unroll
John Kessenich0c6f9362017-04-20 11:08:24 -0600170:6 Loop Condition
David Neto8c3d5b42019-10-21 14:50:31 -0400180:6 Constant:
190:6 false (const bool)
200:6 No loop body
210:9 Function Definition: f2(f1; ( temp float)
220:9 Function Parameters:
230:9 'input' ( in float)
John Kessenich02467d82017-01-19 15:41:47 -0700240:? Sequence
David Neto8c3d5b42019-10-21 14:50:31 -0400250:10 Loop with condition not tested first
260:10 Loop Condition
270:10 Compare Greater Than ( temp bool)
280:10 'input' ( in float)
290:10 Constant:
300:10 2.000000
310:10 Loop Body
320:? Sequence
330:10 Branch: Return with expression
340:10 Construct float ( temp float)
350:10 Construct vec4 ( temp 4-component vector of float)
360:10 'input' ( in float)
370:13 Function Definition: f3(f1; ( temp void)
380:13 Function Parameters:
390:13 'input' ( in float)
400:? Sequence
410:14 Loop with condition not tested first
420:14 Loop Condition
430:14 Compare Less Than ( temp bool)
440:14 'input' ( in float)
450:14 Constant:
460:14 10.000000
470:14 Loop Body
480:14 Pre-Increment ( temp float)
490:14 'input' ( in float)
500:17 Function Definition: f4(f1; ( temp void)
510:17 Function Parameters:
520:17 'input' ( in float)
530:? Sequence
540:18 Loop with condition not tested first
550:18 Loop Condition
560:18 Compare Less Than ( temp bool)
570:18 Pre-Increment ( temp float)
580:18 'input' ( in float)
590:18 Constant:
600:18 10.000000
610:18 Loop Body
620:18 Loop with condition tested first
630:18 Loop Condition
640:18 Compare Less Than ( temp bool)
650:18 Pre-Increment ( temp float)
660:18 'input' ( in float)
670:18 Constant:
680:18 10.000000
690:18 No loop body
700:22 Function Definition: @PixelShaderFunction(f1; ( temp 4-component vector of float)
710:22 Function Parameters:
720:22 'input' ( in float)
730:? Sequence
740:23 Function Call: f0( ( temp void)
750:24 Function Call: f1( ( temp void)
760:25 Function Call: f2(f1; ( temp float)
770:25 'input' ( in float)
780:26 Function Call: f3(f1; ( temp void)
790:26 'input' ( in float)
800:27 Function Call: f4(f1; ( temp void)
810:27 'input' ( in float)
820:28 Branch: Return with expression
830:28 Construct vec4 ( temp 4-component vector of float)
840:28 'input' ( in float)
850:22 Function Definition: PixelShaderFunction( ( temp void)
860:22 Function Parameters:
870:? Sequence
880:22 move second child to first child ( temp float)
John Kessenich0c6f9362017-04-20 11:08:24 -0600890:? 'input' ( temp float)
900:? 'input' (layout( location=0) in float)
David Neto8c3d5b42019-10-21 14:50:31 -0400910:22 move second child to first child ( temp 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -0600920:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
David Neto8c3d5b42019-10-21 14:50:31 -0400930:22 Function Call: @PixelShaderFunction(f1; ( temp 4-component vector of float)
John Kessenich0c6f9362017-04-20 11:08:24 -0600940:? 'input' ( temp float)
John Kessenich119f8f62016-06-05 15:44:07 -0600950:? Linker Objects
John Kessenich71c100d2017-03-14 19:43:13 -0600960:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
John Kessenich0c6f9362017-04-20 11:08:24 -0600970:? 'input' (layout( location=0) in float)
John Kessenich119f8f62016-06-05 15:44:07 -060098
99
100Linked fragment stage:
101
102
John Kessenich6fa17642017-04-07 15:33:08 -0600103Shader version: 500
John Kessenich119f8f62016-06-05 15:44:07 -0600104gl_FragCoord origin is upper left
1050:? Sequence
David Neto8c3d5b42019-10-21 14:50:31 -04001060:1 Function Definition: f0( ( temp void)
1070:1 Function Parameters:
John Kessenich119f8f62016-06-05 15:44:07 -06001080:? Sequence
David Neto8c3d5b42019-10-21 14:50:31 -04001090:2 Loop with condition not tested first: Unroll
1100:2 Loop Condition
1110:2 Constant:
1120:2 false (const bool)
1130:2 No loop body
1140:5 Function Definition: f1( ( temp void)
1150:5 Function Parameters:
1160:? Sequence
1170:6 Loop with condition not tested first: Unroll
John Kessenich0c6f9362017-04-20 11:08:24 -06001180:6 Loop Condition
David Neto8c3d5b42019-10-21 14:50:31 -04001190:6 Constant:
1200:6 false (const bool)
1210:6 No loop body
1220:9 Function Definition: f2(f1; ( temp float)
1230:9 Function Parameters:
1240:9 'input' ( in float)
John Kessenich02467d82017-01-19 15:41:47 -07001250:? Sequence
David Neto8c3d5b42019-10-21 14:50:31 -04001260:10 Loop with condition not tested first
1270:10 Loop Condition
1280:10 Compare Greater Than ( temp bool)
1290:10 'input' ( in float)
1300:10 Constant:
1310:10 2.000000
1320:10 Loop Body
1330:? Sequence
1340:10 Branch: Return with expression
1350:10 Construct float ( temp float)
1360:10 Construct vec4 ( temp 4-component vector of float)
1370:10 'input' ( in float)
1380:13 Function Definition: f3(f1; ( temp void)
1390:13 Function Parameters:
1400:13 'input' ( in float)
1410:? Sequence
1420:14 Loop with condition not tested first
1430:14 Loop Condition
1440:14 Compare Less Than ( temp bool)
1450:14 'input' ( in float)
1460:14 Constant:
1470:14 10.000000
1480:14 Loop Body
1490:14 Pre-Increment ( temp float)
1500:14 'input' ( in float)
1510:17 Function Definition: f4(f1; ( temp void)
1520:17 Function Parameters:
1530:17 'input' ( in float)
1540:? Sequence
1550:18 Loop with condition not tested first
1560:18 Loop Condition
1570:18 Compare Less Than ( temp bool)
1580:18 Pre-Increment ( temp float)
1590:18 'input' ( in float)
1600:18 Constant:
1610:18 10.000000
1620:18 Loop Body
1630:18 Loop with condition tested first
1640:18 Loop Condition
1650:18 Compare Less Than ( temp bool)
1660:18 Pre-Increment ( temp float)
1670:18 'input' ( in float)
1680:18 Constant:
1690:18 10.000000
1700:18 No loop body
1710:22 Function Definition: @PixelShaderFunction(f1; ( temp 4-component vector of float)
1720:22 Function Parameters:
1730:22 'input' ( in float)
1740:? Sequence
1750:23 Function Call: f0( ( temp void)
1760:24 Function Call: f1( ( temp void)
1770:25 Function Call: f2(f1; ( temp float)
1780:25 'input' ( in float)
1790:26 Function Call: f3(f1; ( temp void)
1800:26 'input' ( in float)
1810:27 Function Call: f4(f1; ( temp void)
1820:27 'input' ( in float)
1830:28 Branch: Return with expression
1840:28 Construct vec4 ( temp 4-component vector of float)
1850:28 'input' ( in float)
1860:22 Function Definition: PixelShaderFunction( ( temp void)
1870:22 Function Parameters:
1880:? Sequence
1890:22 move second child to first child ( temp float)
John Kessenich0c6f9362017-04-20 11:08:24 -06001900:? 'input' ( temp float)
1910:? 'input' (layout( location=0) in float)
David Neto8c3d5b42019-10-21 14:50:31 -04001920:22 move second child to first child ( temp 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -06001930:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
David Neto8c3d5b42019-10-21 14:50:31 -04001940:22 Function Call: @PixelShaderFunction(f1; ( temp 4-component vector of float)
John Kessenich0c6f9362017-04-20 11:08:24 -06001950:? 'input' ( temp float)
John Kessenich119f8f62016-06-05 15:44:07 -06001960:? Linker Objects
John Kessenich71c100d2017-03-14 19:43:13 -06001970:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
John Kessenich0c6f9362017-04-20 11:08:24 -06001980:? 'input' (layout( location=0) in float)
John Kessenich119f8f62016-06-05 15:44:07 -0600199
John Kessenich2b5ea9f2018-01-31 18:35:56 -0700200// Module Version 10000
Graeme Leese182ab462020-06-22 11:49:38 +0100201// Generated by (magic number): 8000a
David Neto8c3d5b42019-10-21 14:50:31 -0400202// Id's are bound by 99
John Kessenich119f8f62016-06-05 15:44:07 -0600203
204 Capability Shader
205 1: ExtInstImport "GLSL.std.450"
206 MemoryModel Logical GLSL450
David Neto8c3d5b42019-10-21 14:50:31 -0400207 EntryPoint Fragment 4 "PixelShaderFunction" 92 95
John Kessenich119f8f62016-06-05 15:44:07 -0600208 ExecutionMode 4 OriginUpperLeft
John Kessenich6fa17642017-04-07 15:33:08 -0600209 Source HLSL 500
John Kessenich119f8f62016-06-05 15:44:07 -0600210 Name 4 "PixelShaderFunction"
David Neto8c3d5b42019-10-21 14:50:31 -0400211 Name 6 "f0("
212 Name 8 "f1("
213 Name 14 "f2(f1;"
214 Name 13 "input"
215 Name 18 "f3(f1;"
216 Name 17 "input"
217 Name 21 "f4(f1;"
218 Name 20 "input"
219 Name 26 "@PixelShaderFunction(f1;"
220 Name 25 "input"
221 Name 77 "param"
222 Name 80 "param"
223 Name 83 "param"
224 Name 90 "input"
225 Name 92 "input"
226 Name 95 "@entryPointOutput"
227 Name 96 "param"
228 Decorate 92(input) Location 0
229 Decorate 95(@entryPointOutput) Location 0
John Kessenich119f8f62016-06-05 15:44:07 -0600230 2: TypeVoid
231 3: TypeFunction 2
David Neto8c3d5b42019-10-21 14:50:31 -0400232 10: TypeFloat 32
233 11: TypePointer Function 10(float)
234 12: TypeFunction 10(float) 11(ptr)
235 16: TypeFunction 2 11(ptr)
236 23: TypeVector 10(float) 4
237 24: TypeFunction 23(fvec4) 11(ptr)
238 32: TypeBool
239 33: 32(bool) ConstantFalse
240 47: 10(float) Constant 1073741824
241 55: 10(float) Constant 1065353216
242 58: 10(float) Constant 1092616192
243 91: TypePointer Input 10(float)
244 92(input): 91(ptr) Variable Input
245 94: TypePointer Output 23(fvec4)
24695(@entryPointOutput): 94(ptr) Variable Output
John Kessenich119f8f62016-06-05 15:44:07 -06002474(PixelShaderFunction): 2 Function None 3
248 5: Label
David Neto8c3d5b42019-10-21 14:50:31 -0400249 90(input): 11(ptr) Variable Function
250 96(param): 11(ptr) Variable Function
251 93: 10(float) Load 92(input)
252 Store 90(input) 93
253 97: 10(float) Load 90(input)
254 Store 96(param) 97
255 98: 23(fvec4) FunctionCall 26(@PixelShaderFunction(f1;) 96(param)
256 Store 95(@entryPointOutput) 98
John Kessenich02467d82017-01-19 15:41:47 -0700257 Return
258 FunctionEnd
David Neto8c3d5b42019-10-21 14:50:31 -0400259 6(f0(): 2 Function None 3
260 7: Label
261 Branch 28
262 28: Label
263 LoopMerge 30 31 Unroll
264 Branch 29
265 29: Label
266 Branch 31
267 31: Label
268 BranchConditional 33 28 30
269 30: Label
270 Return
271 FunctionEnd
272 8(f1(): 2 Function None 3
273 9: Label
John Kessenich0c6f9362017-04-20 11:08:24 -0600274 Branch 34
275 34: Label
David Neto8c3d5b42019-10-21 14:50:31 -0400276 LoopMerge 36 37 Unroll
277 Branch 35
John Kessenich0c6f9362017-04-20 11:08:24 -0600278 35: Label
David Neto8c3d5b42019-10-21 14:50:31 -0400279 Branch 37
280 37: Label
281 BranchConditional 33 34 36
282 36: Label
283 Return
284 FunctionEnd
285 14(f2(f1;): 10(float) Function None 12
286 13(input): 11(ptr) FunctionParameter
287 15: Label
288 Branch 38
289 38: Label
290 LoopMerge 40 41 None
291 Branch 39
292 39: Label
293 42: 10(float) Load 13(input)
294 43: 23(fvec4) CompositeConstruct 42 42 42 42
295 44: 10(float) CompositeExtract 43 0
296 ReturnValue 44
297 41: Label
298 Branch 38
299 40: Label
300 Unreachable
301 FunctionEnd
302 18(f3(f1;): 2 Function None 16
303 17(input): 11(ptr) FunctionParameter
304 19: Label
305 Branch 50
306 50: Label
307 LoopMerge 52 53 None
John Kessenich0c6f9362017-04-20 11:08:24 -0600308 Branch 51
309 51: Label
David Neto8c3d5b42019-10-21 14:50:31 -0400310 54: 10(float) Load 17(input)
311 56: 10(float) FAdd 54 55
312 Store 17(input) 56
313 Branch 53
314 53: Label
315 57: 10(float) Load 17(input)
316 59: 32(bool) FOrdLessThan 57 58
317 BranchConditional 59 50 52
318 52: Label
319 Return
320 FunctionEnd
321 21(f4(f1;): 2 Function None 16
322 20(input): 11(ptr) FunctionParameter
323 22: Label
324 Branch 60
325 60: Label
326 LoopMerge 62 63 None
327 Branch 61
328 61: Label
329 Branch 64
330 64: Label
331 LoopMerge 66 67 None
332 Branch 68
333 68: Label
334 69: 10(float) Load 20(input)
335 70: 10(float) FAdd 69 55
336 Store 20(input) 70
337 71: 32(bool) FOrdLessThan 70 58
338 BranchConditional 71 65 66
339 65: Label
340 Branch 67
341 67: Label
342 Branch 64
343 66: Label
344 Branch 63
345 63: Label
346 72: 10(float) Load 20(input)
347 73: 10(float) FAdd 72 55
348 Store 20(input) 73
349 74: 32(bool) FOrdLessThan 73 58
350 BranchConditional 74 60 62
351 62: Label
352 Return
353 FunctionEnd
35426(@PixelShaderFunction(f1;): 23(fvec4) Function None 24
355 25(input): 11(ptr) FunctionParameter
356 27: Label
357 77(param): 11(ptr) Variable Function
358 80(param): 11(ptr) Variable Function
359 83(param): 11(ptr) Variable Function
360 75: 2 FunctionCall 6(f0()
361 76: 2 FunctionCall 8(f1()
362 78: 10(float) Load 25(input)
363 Store 77(param) 78
364 79: 10(float) FunctionCall 14(f2(f1;) 77(param)
365 81: 10(float) Load 25(input)
366 Store 80(param) 81
367 82: 2 FunctionCall 18(f3(f1;) 80(param)
368 84: 10(float) Load 25(input)
369 Store 83(param) 84
370 85: 2 FunctionCall 21(f4(f1;) 83(param)
371 86: 10(float) Load 25(input)
372 87: 23(fvec4) CompositeConstruct 86 86 86 86
373 ReturnValue 87
John Kessenich119f8f62016-06-05 15:44:07 -0600374 FunctionEnd