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