spv.forLoop.frag Linked fragment stage: // Module Version 10000 // Generated by (magic number): 80001 // Id's are bound by 127 Capability Shader 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Fragment 4 "main" 11 36 101 ExecutionMode 4 OriginLowerLeft Source GLSL 130 Name 4 "main" Name 9 "color" Name 11 "BaseColor" Name 15 "i" Name 23 "Count" Name 28 "bigColor" Name 36 "gl_FragColor" Name 39 "sum" Name 41 "i" Name 52 "v4" Name 62 "i" Name 69 "tv4" Name 86 "r" Name 92 "i" Name 101 "f" Name 114 "i" 2: TypeVoid 3: TypeFunction 2 6: TypeFloat 32 7: TypeVector 6(float) 4 8: TypePointer Function 7(fvec4) 10: TypePointer Input 7(fvec4) 11(BaseColor): 10(ptr) Variable Input 13: TypeInt 32 1 14: TypePointer Function 13(int) 16: 13(int) Constant 0 22: TypePointer UniformConstant 13(int) 23(Count): 22(ptr) Variable UniformConstant 25: TypeBool 27: TypePointer UniformConstant 7(fvec4) 28(bigColor): 27(ptr) Variable UniformConstant 33: 13(int) Constant 1 35: TypePointer Output 7(fvec4) 36(gl_FragColor): 35(ptr) Variable Output 38: TypePointer Function 6(float) 40: 6(float) Constant 0 47: 13(int) Constant 4 49: TypeInt 32 0 50: TypeVector 49(int) 4 51: TypePointer UniformConstant 50(ivec4) 52(v4): 51(ptr) Variable UniformConstant 54: TypePointer UniformConstant 49(int) 74: 49(int) Constant 4 87: TypeVector 6(float) 3 100: TypePointer Input 6(float) 101(f): 100(ptr) Variable Input 103: 49(int) Constant 3 120: 13(int) Constant 16 4(main): 2 Function None 3 5: Label 9(color): 8(ptr) Variable Function 15(i): 14(ptr) Variable Function 39(sum): 38(ptr) Variable Function 41(i): 14(ptr) Variable Function 62(i): 14(ptr) Variable Function 69(tv4): 8(ptr) Variable Function 86(r): 8(ptr) Variable Function 92(i): 14(ptr) Variable Function 114(i): 14(ptr) Variable Function 12: 7(fvec4) Load 11(BaseColor) Store 9(color) 12 Store 15(i) 16 Branch 17 17: Label 21: 13(int) Load 15(i) 24: 13(int) Load 23(Count) 26: 25(bool) SLessThan 21 24 LoopMerge 19 20 None BranchConditional 26 18 19 18: Label 29: 7(fvec4) Load 28(bigColor) 30: 7(fvec4) Load 9(color) 31: 7(fvec4) FAdd 30 29 Store 9(color) 31 Branch 20 19: Label 37: 7(fvec4) Load 9(color) Store 36(gl_FragColor) 37 Store 39(sum) 40 Store 41(i) 16 Branch 42 20: Label 32: 13(int) Load 15(i) 34: 13(int) IAdd 32 33 Store 15(i) 34 Branch 17 42: Label 46: 13(int) Load 41(i) 48: 25(bool) SLessThan 46 47 LoopMerge 44 45 None BranchConditional 48 43 44 43: Label 53: 13(int) Load 41(i) 55: 54(ptr) AccessChain 52(v4) 53 56: 49(int) Load 55 57: 6(float) ConvertUToF 56 58: 6(float) Load 39(sum) 59: 6(float) FAdd 58 57 Store 39(sum) 59 Branch 45 44: Label Store 62(i) 16 Branch 63 45: Label 60: 13(int) Load 41(i) 61: 13(int) IAdd 60 33 Store 41(i) 61 Branch 42 63: Label 67: 13(int) Load 62(i) 68: 25(bool) SLessThan 67 47 LoopMerge 65 66 None BranchConditional 68 64 65 64: Label 70: 13(int) Load 62(i) 71: 13(int) Load 62(i) 72: 54(ptr) AccessChain 52(v4) 71 73: 49(int) Load 72 75: 49(int) IMul 73 74 76: 6(float) ConvertUToF 75 77: 38(ptr) AccessChain 69(tv4) 70 Store 77 76 Branch 66 65: Label 80: 6(float) Load 39(sum) 81: 7(fvec4) CompositeConstruct 80 80 80 80 82: 7(fvec4) Load 69(tv4) 83: 7(fvec4) FAdd 81 82 84: 7(fvec4) Load 36(gl_FragColor) 85: 7(fvec4) FAdd 84 83 Store 36(gl_FragColor) 85 88: 7(fvec4) Load 11(BaseColor) 89: 87(fvec3) VectorShuffle 88 88 0 1 2 90: 7(fvec4) Load 86(r) 91: 7(fvec4) VectorShuffle 90 89 4 5 6 3 Store 86(r) 91 Store 92(i) 16 Branch 93 66: Label 78: 13(int) Load 62(i) 79: 13(int) IAdd 78 33 Store 62(i) 79 Branch 63 93: Label 97: 13(int) Load 92(i) 98: 13(int) Load 23(Count) 99: 25(bool) SLessThan 97 98 LoopMerge 95 96 None BranchConditional 99 94 95 94: Label 102: 6(float) Load 101(f) 104: 38(ptr) AccessChain 86(r) 103 Store 104 102 Branch 96 95: Label 107: 7(fvec4) Load 86(r) 108: 87(fvec3) VectorShuffle 107 107 0 1 2 109: 7(fvec4) Load 36(gl_FragColor) 110: 87(fvec3) VectorShuffle 109 109 0 1 2 111: 87(fvec3) FAdd 110 108 112: 7(fvec4) Load 36(gl_FragColor) 113: 7(fvec4) VectorShuffle 112 111 4 5 6 3 Store 36(gl_FragColor) 113 Store 114(i) 16 Branch 115 96: Label 105: 13(int) Load 92(i) 106: 13(int) IAdd 105 33 Store 92(i) 106 Branch 93 115: Label 119: 13(int) Load 114(i) 121: 25(bool) SLessThan 119 120 LoopMerge 117 118 None BranchConditional 121 116 117 116: Label 122: 6(float) Load 101(f) 123: 7(fvec4) Load 36(gl_FragColor) 124: 7(fvec4) VectorTimesScalar 123 122 Store 36(gl_FragColor) 124 Branch 118 117: Label Return 118: Label 125: 13(int) Load 114(i) 126: 13(int) IAdd 125 47 Store 114(i) 126 Branch 115 FunctionEnd