| spv.loopsArtificial.frag |
| WARNING: 0:14: varying deprecated in version 130; may be removed in future release |
| |
| |
| Linked fragment stage: |
| |
| |
| // Module Version 10000 |
| // Generated by (magic number): 80001 |
| // Id's are bound by 191 |
| |
| Capability Shader |
| 1: ExtInstImport "GLSL.std.450" |
| MemoryModel Logical GLSL450 |
| EntryPoint Fragment 4 "main" 11 |
| ExecutionMode 4 OriginLowerLeft |
| Source GLSL 130 |
| Name 4 "main" |
| Name 9 "color" |
| Name 11 "BaseColor" |
| Name 27 "d4" |
| Name 32 "bigColor4" |
| Name 84 "d13" |
| Name 144 "gl_FragColor" |
| Name 146 "bigColor" |
| Name 147 "bigColor1_1" |
| Name 148 "bigColor1_2" |
| Name 149 "bigColor1_3" |
| Name 150 "bigColor2" |
| Name 151 "bigColor3" |
| Name 152 "bigColor5" |
| Name 153 "bigColor6" |
| Name 154 "bigColor7" |
| Name 155 "bigColor8" |
| Name 156 "d" |
| Name 157 "d2" |
| Name 158 "d3" |
| Name 159 "d5" |
| Name 160 "d6" |
| Name 161 "d7" |
| Name 162 "d8" |
| Name 163 "d9" |
| Name 164 "d10" |
| Name 165 "d11" |
| Name 166 "d12" |
| Name 167 "d14" |
| Name 168 "d15" |
| Name 169 "d16" |
| Name 170 "d17" |
| Name 171 "d18" |
| Name 172 "d19" |
| Name 173 "d20" |
| Name 174 "d21" |
| Name 175 "d22" |
| Name 176 "d23" |
| Name 177 "d24" |
| Name 178 "d25" |
| Name 179 "d26" |
| Name 180 "d27" |
| Name 181 "d28" |
| Name 182 "d29" |
| Name 183 "d30" |
| Name 184 "d31" |
| Name 185 "d32" |
| Name 186 "d33" |
| Name 187 "d34" |
| Name 190 "Count" |
| 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 |
| 17: TypeBool |
| 18: 17(bool) ConstantTrue |
| 21: TypeInt 32 0 |
| 22: 21(int) Constant 2 |
| 23: TypePointer Function 6(float) |
| 26: TypePointer UniformConstant 6(float) |
| 27(d4): 26(ptr) Variable UniformConstant |
| 31: TypePointer UniformConstant 7(fvec4) |
| 32(bigColor4): 31(ptr) Variable UniformConstant |
| 36: 21(int) Constant 0 |
| 43: 6(float) Constant 1073741824 |
| 56: 6(float) Constant 1065353216 |
| 58: 17(bool) ConstantFalse |
| 60: 21(int) Constant 1 |
| 81: 21(int) Constant 3 |
| 84(d13): 26(ptr) Variable UniformConstant |
| 143: TypePointer Output 7(fvec4) |
| 144(gl_FragColor): 143(ptr) Variable Output |
| 146(bigColor): 31(ptr) Variable UniformConstant |
| 147(bigColor1_1): 31(ptr) Variable UniformConstant |
| 148(bigColor1_2): 31(ptr) Variable UniformConstant |
| 149(bigColor1_3): 31(ptr) Variable UniformConstant |
| 150(bigColor2): 31(ptr) Variable UniformConstant |
| 151(bigColor3): 31(ptr) Variable UniformConstant |
| 152(bigColor5): 31(ptr) Variable UniformConstant |
| 153(bigColor6): 31(ptr) Variable UniformConstant |
| 154(bigColor7): 31(ptr) Variable UniformConstant |
| 155(bigColor8): 31(ptr) Variable UniformConstant |
| 156(d): 26(ptr) Variable UniformConstant |
| 157(d2): 26(ptr) Variable UniformConstant |
| 158(d3): 26(ptr) Variable UniformConstant |
| 159(d5): 26(ptr) Variable UniformConstant |
| 160(d6): 26(ptr) Variable UniformConstant |
| 161(d7): 26(ptr) Variable UniformConstant |
| 162(d8): 26(ptr) Variable UniformConstant |
| 163(d9): 26(ptr) Variable UniformConstant |
| 164(d10): 26(ptr) Variable UniformConstant |
| 165(d11): 26(ptr) Variable UniformConstant |
| 166(d12): 26(ptr) Variable UniformConstant |
| 167(d14): 26(ptr) Variable UniformConstant |
| 168(d15): 26(ptr) Variable UniformConstant |
| 169(d16): 26(ptr) Variable UniformConstant |
| 170(d17): 26(ptr) Variable UniformConstant |
| 171(d18): 26(ptr) Variable UniformConstant |
| 172(d19): 26(ptr) Variable UniformConstant |
| 173(d20): 26(ptr) Variable UniformConstant |
| 174(d21): 26(ptr) Variable UniformConstant |
| 175(d22): 26(ptr) Variable UniformConstant |
| 176(d23): 26(ptr) Variable UniformConstant |
| 177(d24): 26(ptr) Variable UniformConstant |
| 178(d25): 26(ptr) Variable UniformConstant |
| 179(d26): 26(ptr) Variable UniformConstant |
| 180(d27): 26(ptr) Variable UniformConstant |
| 181(d28): 26(ptr) Variable UniformConstant |
| 182(d29): 26(ptr) Variable UniformConstant |
| 183(d30): 26(ptr) Variable UniformConstant |
| 184(d31): 26(ptr) Variable UniformConstant |
| 185(d32): 26(ptr) Variable UniformConstant |
| 186(d33): 26(ptr) Variable UniformConstant |
| 187(d34): 26(ptr) Variable UniformConstant |
| 188: TypeInt 32 1 |
| 189: TypePointer UniformConstant 188(int) |
| 190(Count): 189(ptr) Variable UniformConstant |
| 4(main): 2 Function None 3 |
| 5: Label |
| 9(color): 8(ptr) Variable Function |
| 12: 7(fvec4) Load 11(BaseColor) |
| Store 9(color) 12 |
| Branch 13 |
| 13: Label |
| 16: 17(bool) Phi 18 5 58 52 58 66 |
| LoopMerge 14 13 None |
| Branch 19 |
| 19: Label |
| SelectionMerge 15 None |
| BranchConditional 16 15 20 |
| 20: Label |
| 24: 23(ptr) AccessChain 9(color) 22 |
| 25: 6(float) Load 24 |
| 28: 6(float) Load 27(d4) |
| 29: 17(bool) FOrdLessThan 25 28 |
| SelectionMerge 30 None |
| BranchConditional 29 30 14 |
| 30: Label |
| Branch 15 |
| 15: Label |
| 33: 7(fvec4) Load 32(bigColor4) |
| 34: 7(fvec4) Load 9(color) |
| 35: 7(fvec4) FAdd 34 33 |
| Store 9(color) 35 |
| 37: 23(ptr) AccessChain 9(color) 36 |
| 38: 6(float) Load 37 |
| 39: 6(float) Load 27(d4) |
| 40: 17(bool) FOrdLessThan 38 39 |
| SelectionMerge 42 None |
| BranchConditional 40 41 42 |
| 41: Label |
| 44: 23(ptr) AccessChain 9(color) 22 |
| 45: 6(float) Load 44 |
| 46: 6(float) FAdd 45 43 |
| 47: 23(ptr) AccessChain 9(color) 22 |
| Store 47 46 |
| 48: 23(ptr) AccessChain 9(color) 22 |
| 49: 6(float) Load 48 |
| 50: 6(float) Load 27(d4) |
| 51: 17(bool) FOrdLessThan 49 50 |
| SelectionMerge 53 None |
| BranchConditional 51 52 53 |
| 52: Label |
| 54: 23(ptr) AccessChain 9(color) 36 |
| 55: 6(float) Load 54 |
| 57: 6(float) FAdd 55 56 |
| Store 54 57 |
| Branch 13 |
| 53: Label |
| Branch 42 |
| 42: Label |
| 61: 23(ptr) AccessChain 9(color) 60 |
| 62: 6(float) Load 61 |
| 63: 6(float) Load 27(d4) |
| 64: 17(bool) FOrdLessThan 62 63 |
| SelectionMerge 66 None |
| BranchConditional 64 65 72 |
| 65: Label |
| 67: 6(float) Load 27(d4) |
| 68: 23(ptr) AccessChain 9(color) 60 |
| 69: 6(float) Load 68 |
| 70: 6(float) FAdd 69 67 |
| 71: 23(ptr) AccessChain 9(color) 60 |
| Store 71 70 |
| Branch 66 |
| 72: Label |
| 73: 6(float) Load 27(d4) |
| 74: 23(ptr) AccessChain 9(color) 36 |
| 75: 6(float) Load 74 |
| 76: 6(float) FAdd 75 73 |
| 77: 23(ptr) AccessChain 9(color) 36 |
| Store 77 76 |
| Branch 66 |
| 66: Label |
| Branch 13 |
| 14: Label |
| Branch 78 |
| 78: Label |
| 82: 23(ptr) AccessChain 9(color) 81 |
| 83: 6(float) Load 82 |
| 85: 6(float) Load 84(d13) |
| 86: 17(bool) FOrdLessThan 83 85 |
| LoopMerge 79 78 None |
| BranchConditional 86 80 79 |
| 80: Label |
| 87: 23(ptr) AccessChain 9(color) 22 |
| 88: 6(float) Load 87 |
| 89: 6(float) Load 84(d13) |
| 90: 17(bool) FOrdLessThan 88 89 |
| SelectionMerge 92 None |
| BranchConditional 90 91 96 |
| 91: Label |
| 93: 7(fvec4) Load 9(color) |
| 94: 7(fvec4) CompositeConstruct 56 56 56 56 |
| 95: 7(fvec4) FAdd 93 94 |
| Store 9(color) 95 |
| Branch 92 |
| 96: Label |
| 97: 7(fvec4) Load 9(color) |
| 98: 7(fvec4) CompositeConstruct 56 56 56 56 |
| 99: 7(fvec4) FSub 97 98 |
| Store 9(color) 99 |
| Branch 92 |
| 92: Label |
| 100: 7(fvec4) Load 32(bigColor4) |
| 101: 7(fvec4) Load 9(color) |
| 102: 7(fvec4) FAdd 101 100 |
| Store 9(color) 102 |
| 103: 23(ptr) AccessChain 9(color) 36 |
| 104: 6(float) Load 103 |
| 105: 6(float) Load 27(d4) |
| 106: 17(bool) FOrdLessThan 104 105 |
| SelectionMerge 108 None |
| BranchConditional 106 107 108 |
| 107: Label |
| 109: 23(ptr) AccessChain 9(color) 22 |
| 110: 6(float) Load 109 |
| 111: 6(float) FAdd 110 43 |
| 112: 23(ptr) AccessChain 9(color) 22 |
| Store 112 111 |
| 113: 23(ptr) AccessChain 9(color) 22 |
| 114: 6(float) Load 113 |
| 115: 6(float) Load 27(d4) |
| 116: 17(bool) FOrdLessThan 114 115 |
| SelectionMerge 118 None |
| BranchConditional 116 117 118 |
| 117: Label |
| 119: 23(ptr) AccessChain 9(color) 36 |
| 120: 6(float) Load 119 |
| 121: 6(float) FAdd 120 56 |
| Store 119 121 |
| Branch 78 |
| 118: Label |
| Branch 108 |
| 108: Label |
| 123: 23(ptr) AccessChain 9(color) 60 |
| 124: 6(float) Load 123 |
| 125: 6(float) Load 27(d4) |
| 126: 17(bool) FOrdLessThan 124 125 |
| SelectionMerge 128 None |
| BranchConditional 126 127 134 |
| 127: Label |
| 129: 6(float) Load 27(d4) |
| 130: 23(ptr) AccessChain 9(color) 60 |
| 131: 6(float) Load 130 |
| 132: 6(float) FAdd 131 129 |
| 133: 23(ptr) AccessChain 9(color) 60 |
| Store 133 132 |
| Branch 128 |
| 134: Label |
| 135: 6(float) Load 27(d4) |
| 136: 23(ptr) AccessChain 9(color) 36 |
| 137: 6(float) Load 136 |
| 138: 6(float) FAdd 137 135 |
| 139: 23(ptr) AccessChain 9(color) 36 |
| Store 139 138 |
| Branch 128 |
| 128: Label |
| Branch 78 |
| 79: Label |
| 140: 7(fvec4) Load 9(color) |
| 141: 7(fvec4) CompositeConstruct 56 56 56 56 |
| 142: 7(fvec4) FAdd 140 141 |
| Store 9(color) 142 |
| 145: 7(fvec4) Load 9(color) |
| Store 144(gl_FragColor) 145 |
| Return |
| FunctionEnd |