1spv.forLoop.frag 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 131 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 11 24 28 36 53 104 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 140 12 Name 4 "main" 13 Name 9 "color" 14 Name 11 "BaseColor" 15 Name 15 "i" 16 Name 24 "Count" 17 Name 28 "bigColor" 18 Name 36 "gl_FragColor" 19 Name 39 "sum" 20 Name 41 "i" 21 Name 53 "v4" 22 Name 63 "i" 23 Name 71 "tv4" 24 Name 88 "r" 25 Name 94 "i" 26 Name 104 "f" 27 Name 117 "i" 28 Decorate 11(BaseColor) Location 1 29 Decorate 24(Count) Flat 30 Decorate 24(Count) Location 3 31 Decorate 28(bigColor) Location 0 32 Decorate 36(gl_FragColor) Location 0 33 Decorate 53(v4) Flat 34 Decorate 53(v4) Location 4 35 Decorate 104(f) Location 2 36 2: TypeVoid 37 3: TypeFunction 2 38 6: TypeFloat 32 39 7: TypeVector 6(float) 4 40 8: TypePointer Function 7(fvec4) 41 10: TypePointer Input 7(fvec4) 42 11(BaseColor): 10(ptr) Variable Input 43 13: TypeInt 32 1 44 14: TypePointer Function 13(int) 45 16: 13(int) Constant 0 46 23: TypePointer Input 13(int) 47 24(Count): 23(ptr) Variable Input 48 26: TypeBool 49 28(bigColor): 10(ptr) Variable Input 50 33: 13(int) Constant 1 51 35: TypePointer Output 7(fvec4) 5236(gl_FragColor): 35(ptr) Variable Output 53 38: TypePointer Function 6(float) 54 40: 6(float) Constant 0 55 48: 13(int) Constant 4 56 50: TypeInt 32 0 57 51: TypeVector 50(int) 4 58 52: TypePointer Input 51(ivec4) 59 53(v4): 52(ptr) Variable Input 60 55: TypePointer Input 50(int) 61 76: 50(int) Constant 4 62 89: TypeVector 6(float) 3 63 103: TypePointer Input 6(float) 64 104(f): 103(ptr) Variable Input 65 106: 50(int) Constant 3 66 124: 13(int) Constant 16 67 4(main): 2 Function None 3 68 5: Label 69 9(color): 8(ptr) Variable Function 70 15(i): 14(ptr) Variable Function 71 39(sum): 38(ptr) Variable Function 72 41(i): 14(ptr) Variable Function 73 63(i): 14(ptr) Variable Function 74 71(tv4): 8(ptr) Variable Function 75 88(r): 8(ptr) Variable Function 76 94(i): 14(ptr) Variable Function 77 117(i): 14(ptr) Variable Function 78 12: 7(fvec4) Load 11(BaseColor) 79 Store 9(color) 12 80 Store 15(i) 16 81 Branch 17 82 17: Label 83 LoopMerge 19 20 None 84 Branch 21 85 21: Label 86 22: 13(int) Load 15(i) 87 25: 13(int) Load 24(Count) 88 27: 26(bool) SLessThan 22 25 89 BranchConditional 27 18 19 90 18: Label 91 29: 7(fvec4) Load 28(bigColor) 92 30: 7(fvec4) Load 9(color) 93 31: 7(fvec4) FAdd 30 29 94 Store 9(color) 31 95 Branch 20 96 20: Label 97 32: 13(int) Load 15(i) 98 34: 13(int) IAdd 32 33 99 Store 15(i) 34 100 Branch 17 101 19: Label 102 37: 7(fvec4) Load 9(color) 103 Store 36(gl_FragColor) 37 104 Store 39(sum) 40 105 Store 41(i) 16 106 Branch 42 107 42: Label 108 LoopMerge 44 45 None 109 Branch 46 110 46: Label 111 47: 13(int) Load 41(i) 112 49: 26(bool) SLessThan 47 48 113 BranchConditional 49 43 44 114 43: Label 115 54: 13(int) Load 41(i) 116 56: 55(ptr) AccessChain 53(v4) 54 117 57: 50(int) Load 56 118 58: 6(float) ConvertUToF 57 119 59: 6(float) Load 39(sum) 120 60: 6(float) FAdd 59 58 121 Store 39(sum) 60 122 Branch 45 123 45: Label 124 61: 13(int) Load 41(i) 125 62: 13(int) IAdd 61 33 126 Store 41(i) 62 127 Branch 42 128 44: Label 129 Store 63(i) 16 130 Branch 64 131 64: Label 132 LoopMerge 66 67 None 133 Branch 68 134 68: Label 135 69: 13(int) Load 63(i) 136 70: 26(bool) SLessThan 69 48 137 BranchConditional 70 65 66 138 65: Label 139 72: 13(int) Load 63(i) 140 73: 13(int) Load 63(i) 141 74: 55(ptr) AccessChain 53(v4) 73 142 75: 50(int) Load 74 143 77: 50(int) IMul 75 76 144 78: 6(float) ConvertUToF 77 145 79: 38(ptr) AccessChain 71(tv4) 72 146 Store 79 78 147 Branch 67 148 67: Label 149 80: 13(int) Load 63(i) 150 81: 13(int) IAdd 80 33 151 Store 63(i) 81 152 Branch 64 153 66: Label 154 82: 6(float) Load 39(sum) 155 83: 7(fvec4) CompositeConstruct 82 82 82 82 156 84: 7(fvec4) Load 71(tv4) 157 85: 7(fvec4) FAdd 83 84 158 86: 7(fvec4) Load 36(gl_FragColor) 159 87: 7(fvec4) FAdd 86 85 160 Store 36(gl_FragColor) 87 161 90: 7(fvec4) Load 11(BaseColor) 162 91: 89(fvec3) VectorShuffle 90 90 0 1 2 163 92: 7(fvec4) Load 88(r) 164 93: 7(fvec4) VectorShuffle 92 91 4 5 6 3 165 Store 88(r) 93 166 Store 94(i) 16 167 Branch 95 168 95: Label 169 LoopMerge 97 98 None 170 Branch 99 171 99: Label 172 100: 13(int) Load 94(i) 173 101: 13(int) Load 24(Count) 174 102: 26(bool) SLessThan 100 101 175 BranchConditional 102 96 97 176 96: Label 177 105: 6(float) Load 104(f) 178 107: 38(ptr) AccessChain 88(r) 106 179 Store 107 105 180 Branch 98 181 98: Label 182 108: 13(int) Load 94(i) 183 109: 13(int) IAdd 108 33 184 Store 94(i) 109 185 Branch 95 186 97: Label 187 110: 7(fvec4) Load 88(r) 188 111: 89(fvec3) VectorShuffle 110 110 0 1 2 189 112: 7(fvec4) Load 36(gl_FragColor) 190 113: 89(fvec3) VectorShuffle 112 112 0 1 2 191 114: 89(fvec3) FAdd 113 111 192 115: 7(fvec4) Load 36(gl_FragColor) 193 116: 7(fvec4) VectorShuffle 115 114 4 5 6 3 194 Store 36(gl_FragColor) 116 195 Store 117(i) 16 196 Branch 118 197 118: Label 198 LoopMerge 120 121 None 199 Branch 122 200 122: Label 201 123: 13(int) Load 117(i) 202 125: 26(bool) SLessThan 123 124 203 BranchConditional 125 119 120 204 119: Label 205 126: 6(float) Load 104(f) 206 127: 7(fvec4) Load 36(gl_FragColor) 207 128: 7(fvec4) VectorTimesScalar 127 126 208 Store 36(gl_FragColor) 128 209 Branch 121 210 121: Label 211 129: 13(int) Load 117(i) 212 130: 13(int) IAdd 129 48 213 Store 117(i) 130 214 Branch 118 215 120: Label 216 Return 217 FunctionEnd 218