1 spv.for-complex-condition.vert 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 31 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Vertex 4 "main" 17 27 10 Source GLSL 450 11 Name 4 "main" 12 Name 8 "i" 13 Name 17 "flag" 14 Name 27 "r" 15 Decorate 17(flag) RelaxedPrecision 16 Decorate 17(flag) Location 0 17 Decorate 18 RelaxedPrecision 18 Decorate 27(r) Location 0 19 2: TypeVoid 20 3: TypeFunction 2 21 6: TypeInt 32 1 22 7: TypePointer Function 6(int) 23 9: 6(int) Constant 0 24 16: TypePointer Input 6(int) 25 17(flag): 16(ptr) Variable Input 26 19: 6(int) Constant 1 27 20: TypeBool 28 22: 6(int) Constant 10 29 23: 6(int) Constant 15 30 26: TypePointer Output 6(int) 31 27(r): 26(ptr) Variable Output 32 4(main): 2 Function None 3 33 5: Label 34 8(i): 7(ptr) Variable Function 35 Store 8(i) 9 36 Branch 10 37 10: Label 38 LoopMerge 12 13 None 39 Branch 14 40 14: Label 41 15: 6(int) Load 8(i) 42 18: 6(int) Load 17(flag) 43 21: 20(bool) IEqual 18 19 44 24: 6(int) Select 21 22 23 45 25: 20(bool) SLessThan 15 24 46 BranchConditional 25 11 12 47 11: Label 48 28: 6(int) Load 8(i) 49 Store 27(r) 28 50 Branch 13 51 13: Label 52 29: 6(int) Load 8(i) 53 30: 6(int) IAdd 29 19 54 Store 8(i) 30 55 Branch 10 56 12: Label 57 Return 58 FunctionEnd 59