1hlsl.doLoop.frag 2Shader version: 500 3gl_FragCoord origin is upper left 40:? Sequence 50:1 Function Definition: f0( ( temp void) 60:1 Function Parameters: 70:? Sequence 80: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 170:6 Loop Condition 180: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) 240:? Sequence 250: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) 890:? 'input' ( temp float) 900:? 'input' (layout( location=0) in float) 910:22 move second child to first child ( temp 4-component vector of float) 920:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 930:22 Function Call: @PixelShaderFunction(f1; ( temp 4-component vector of float) 940:? 'input' ( temp float) 950:? Linker Objects 960:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 970:? 'input' (layout( location=0) in float) 98 99 100Linked fragment stage: 101 102 103Shader version: 500 104gl_FragCoord origin is upper left 1050:? Sequence 1060:1 Function Definition: f0( ( temp void) 1070:1 Function Parameters: 1080:? Sequence 1090: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 1180:6 Loop Condition 1190: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) 1250:? Sequence 1260: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) 1900:? 'input' ( temp float) 1910:? 'input' (layout( location=0) in float) 1920:22 move second child to first child ( temp 4-component vector of float) 1930:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 1940:22 Function Call: @PixelShaderFunction(f1; ( temp 4-component vector of float) 1950:? 'input' ( temp float) 1960:? Linker Objects 1970:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 1980:? 'input' (layout( location=0) in float) 199 200// Module Version 10000 201// Generated by (magic number): 80008 202// Id's are bound by 99 203 204 Capability Shader 205 1: ExtInstImport "GLSL.std.450" 206 MemoryModel Logical GLSL450 207 EntryPoint Fragment 4 "PixelShaderFunction" 92 95 208 ExecutionMode 4 OriginUpperLeft 209 Source HLSL 500 210 Name 4 "PixelShaderFunction" 211 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 230 2: TypeVoid 231 3: TypeFunction 2 232 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 2474(PixelShaderFunction): 2 Function None 3 248 5: Label 249 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 257 Return 258 FunctionEnd 259 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 274 Branch 34 275 34: Label 276 LoopMerge 36 37 Unroll 277 Branch 35 278 35: Label 279 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 308 Branch 51 309 51: Label 310 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 374 FunctionEnd 375