John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 1 | spv.shortCircuit.frag |
| 2 | Warning, version 400 is not yet complete; most version-specific features are present, but some are missing. |
| 3 | |
| 4 | |
| 5 | Linked fragment stage: |
| 6 | |
| 7 | |
| 8 | // Module Version 10000 |
| 9 | // Generated by (magic number): 80001 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 10 | // Id's are bound by 147 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 11 | |
| 12 | Capability Shader |
| 13 | 1: ExtInstImport "GLSL.std.450" |
| 14 | MemoryModel Logical GLSL450 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 15 | EntryPoint Fragment 4 "main" 12 24 34 113 140 142 |
| 16 | ExecutionMode 4 OriginUpperLeft |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 17 | Source GLSL 400 |
| 18 | Name 4 "main" |
| 19 | Name 8 "foo(" |
| 20 | Name 12 "of1" |
Dejan Mircevski | ed55bcd | 2016-01-19 21:13:38 -0500 | [diff] [blame] | 21 | Name 24 "of4" |
| 22 | Name 27 "ub" |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 23 | Name 34 "ui" |
| 24 | Name 44 "uba" |
| 25 | Name 113 "uf" |
| 26 | Name 140 "uiv4" |
| 27 | Name 142 "uv4" |
| 28 | Name 145 "ub41" |
| 29 | Name 146 "ub42" |
| 30 | Decorate 34(ui) Flat |
| 31 | Decorate 140(uiv4) Flat |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 32 | 2: TypeVoid |
| 33 | 3: TypeFunction 2 |
| 34 | 6: TypeBool |
| 35 | 7: TypeFunction 6(bool) |
| 36 | 10: TypeFloat 32 |
| 37 | 11: TypePointer Output 10(float) |
| 38 | 12(of1): 11(ptr) Variable Output |
| 39 | 14: 10(float) Constant 1065353216 |
| 40 | 17: 10(float) Constant 1092616192 |
Dejan Mircevski | ed55bcd | 2016-01-19 21:13:38 -0500 | [diff] [blame] | 41 | 21: 10(float) Constant 0 |
| 42 | 22: TypeVector 10(float) 4 |
| 43 | 23: TypePointer Output 22(fvec4) |
| 44 | 24(of4): 23(ptr) Variable Output |
| 45 | 25: 22(fvec4) ConstantComposite 21 21 21 21 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 46 | 26: TypePointer Private 6(bool) |
| 47 | 27(ub): 26(ptr) Variable Private |
| 48 | 32: TypeInt 32 1 |
| 49 | 33: TypePointer Input 32(int) |
| 50 | 34(ui): 33(ptr) Variable Input |
| 51 | 36: 32(int) Constant 2 |
| 52 | 44(uba): 26(ptr) Variable Private |
| 53 | 112: TypePointer Input 10(float) |
| 54 | 113(uf): 112(ptr) Variable Input |
| 55 | 116: 10(float) Constant 1082130432 |
| 56 | 138: TypeVector 32(int) 4 |
| 57 | 139: TypePointer Input 138(ivec4) |
| 58 | 140(uiv4): 139(ptr) Variable Input |
| 59 | 141: TypePointer Input 22(fvec4) |
| 60 | 142(uv4): 141(ptr) Variable Input |
| 61 | 143: TypeVector 6(bool) 4 |
| 62 | 144: TypePointer Private 143(bvec4) |
| 63 | 145(ub41): 144(ptr) Variable Private |
| 64 | 146(ub42): 144(ptr) Variable Private |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 65 | 4(main): 2 Function None 3 |
| 66 | 5: Label |
Dejan Mircevski | ed55bcd | 2016-01-19 21:13:38 -0500 | [diff] [blame] | 67 | Store 12(of1) 21 |
| 68 | Store 24(of4) 25 |
| 69 | 28: 6(bool) Load 27(ub) |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 70 | 29: 6(bool) LogicalNot 28 |
| 71 | SelectionMerge 31 None |
| 72 | BranchConditional 29 30 31 |
| 73 | 30: Label |
| 74 | 35: 32(int) Load 34(ui) |
| 75 | 37: 6(bool) SGreaterThan 35 36 |
| 76 | Branch 31 |
| 77 | 31: Label |
| 78 | 38: 6(bool) Phi 28 5 37 30 |
| 79 | SelectionMerge 40 None |
| 80 | BranchConditional 38 39 40 |
| 81 | 39: Label |
| 82 | 41: 10(float) Load 12(of1) |
| 83 | 42: 10(float) FAdd 41 14 |
| 84 | Store 12(of1) 42 |
| 85 | Branch 40 |
| 86 | 40: Label |
| 87 | 43: 6(bool) Load 27(ub) |
| 88 | 45: 6(bool) Load 44(uba) |
| 89 | 46: 6(bool) LogicalNot 45 |
| 90 | 47: 6(bool) LogicalAnd 43 46 |
| 91 | SelectionMerge 49 None |
| 92 | BranchConditional 47 48 49 |
| 93 | 48: Label |
| 94 | 50: 10(float) Load 12(of1) |
| 95 | 51: 10(float) FAdd 50 14 |
| 96 | Store 12(of1) 51 |
| 97 | Branch 49 |
| 98 | 49: Label |
| 99 | 52: 6(bool) Load 27(ub) |
| 100 | 53: 6(bool) LogicalNot 52 |
| 101 | SelectionMerge 55 None |
| 102 | BranchConditional 53 54 55 |
| 103 | 54: Label |
| 104 | 56: 6(bool) FunctionCall 8(foo() |
| 105 | Branch 55 |
| 106 | 55: Label |
| 107 | 57: 6(bool) Phi 52 49 56 54 |
| 108 | SelectionMerge 59 None |
| 109 | BranchConditional 57 58 59 |
| 110 | 58: Label |
| 111 | 60: 10(float) Load 12(of1) |
| 112 | 61: 10(float) FAdd 60 14 |
| 113 | Store 12(of1) 61 |
| 114 | Branch 59 |
| 115 | 59: Label |
| 116 | 62: 6(bool) Load 27(ub) |
| 117 | SelectionMerge 64 None |
| 118 | BranchConditional 62 63 64 |
| 119 | 63: Label |
| 120 | 65: 6(bool) FunctionCall 8(foo() |
| 121 | Branch 64 |
| 122 | 64: Label |
| 123 | 66: 6(bool) Phi 62 59 65 63 |
| 124 | SelectionMerge 68 None |
| 125 | BranchConditional 66 67 68 |
| 126 | 67: Label |
| 127 | 69: 10(float) Load 12(of1) |
| 128 | 70: 10(float) FAdd 69 14 |
| 129 | Store 12(of1) 70 |
| 130 | Branch 68 |
| 131 | 68: Label |
| 132 | 71: 6(bool) FunctionCall 8(foo() |
| 133 | 72: 6(bool) Load 27(ub) |
| 134 | 73: 6(bool) LogicalOr 71 72 |
| 135 | SelectionMerge 75 None |
| 136 | BranchConditional 73 74 75 |
| 137 | 74: Label |
| 138 | 76: 10(float) Load 12(of1) |
| 139 | 77: 10(float) FAdd 76 14 |
| 140 | Store 12(of1) 77 |
| 141 | Branch 75 |
| 142 | 75: Label |
| 143 | 78: 6(bool) FunctionCall 8(foo() |
| 144 | 79: 6(bool) Load 27(ub) |
| 145 | 80: 6(bool) LogicalAnd 78 79 |
| 146 | SelectionMerge 82 None |
| 147 | BranchConditional 80 81 82 |
| 148 | 81: Label |
| 149 | 83: 10(float) Load 12(of1) |
| 150 | 84: 10(float) FAdd 83 14 |
| 151 | Store 12(of1) 84 |
| 152 | Branch 82 |
| 153 | 82: Label |
| 154 | 85: 6(bool) Load 27(ub) |
| 155 | 86: 6(bool) LogicalNot 85 |
| 156 | SelectionMerge 88 None |
| 157 | BranchConditional 86 87 88 |
| 158 | 87: Label |
| 159 | 89: 10(float) Load 12(of1) |
| 160 | 90: 10(float) FAdd 89 14 |
| 161 | Store 12(of1) 90 |
| 162 | 91: 6(bool) FOrdGreaterThan 90 14 |
| 163 | Branch 88 |
| 164 | 88: Label |
| 165 | 92: 6(bool) Phi 85 82 91 87 |
| 166 | SelectionMerge 94 None |
| 167 | BranchConditional 92 93 94 |
| 168 | 93: Label |
| 169 | 95: 22(fvec4) Load 24(of4) |
| 170 | 96: 22(fvec4) CompositeConstruct 14 14 14 14 |
| 171 | 97: 22(fvec4) FAdd 95 96 |
| 172 | Store 24(of4) 97 |
| 173 | Branch 94 |
| 174 | 94: Label |
| 175 | 98: 10(float) Load 12(of1) |
| 176 | 99: 10(float) FAdd 98 14 |
| 177 | Store 12(of1) 99 |
| 178 | 100: 6(bool) FOrdGreaterThan 99 14 |
| 179 | 101: 6(bool) Load 27(ub) |
| 180 | 102: 6(bool) LogicalOr 100 101 |
| 181 | SelectionMerge 104 None |
| 182 | BranchConditional 102 103 104 |
| 183 | 103: Label |
| 184 | 105: 22(fvec4) Load 24(of4) |
| 185 | 106: 22(fvec4) CompositeConstruct 14 14 14 14 |
| 186 | 107: 22(fvec4) FAdd 105 106 |
| 187 | Store 24(of4) 107 |
| 188 | Branch 104 |
| 189 | 104: Label |
| 190 | 108: 6(bool) Load 27(ub) |
| 191 | 109: 6(bool) LogicalNot 108 |
| 192 | SelectionMerge 111 None |
| 193 | BranchConditional 109 110 111 |
| 194 | 110: Label |
| 195 | 114: 10(float) Load 113(uf) |
| 196 | 115: 10(float) ExtInst 1(GLSL.std.450) 13(Sin) 114 |
| 197 | 117: 10(float) FMul 115 116 |
| 198 | 118: 10(float) Load 12(of1) |
| 199 | 119: 6(bool) FOrdGreaterThan 117 118 |
| 200 | Branch 111 |
| 201 | 111: Label |
| 202 | 120: 6(bool) Phi 108 104 119 110 |
| 203 | SelectionMerge 122 None |
| 204 | BranchConditional 120 121 122 |
| 205 | 121: Label |
| 206 | 123: 10(float) Load 12(of1) |
| 207 | 124: 10(float) FAdd 123 14 |
| 208 | Store 12(of1) 124 |
| 209 | Branch 122 |
| 210 | 122: Label |
| 211 | 125: 6(bool) Load 27(ub) |
| 212 | SelectionMerge 127 None |
| 213 | BranchConditional 125 126 127 |
| 214 | 126: Label |
| 215 | 128: 10(float) Load 113(uf) |
| 216 | 129: 10(float) ExtInst 1(GLSL.std.450) 13(Sin) 128 |
| 217 | 130: 10(float) FMul 129 116 |
| 218 | 131: 10(float) Load 12(of1) |
| 219 | 132: 6(bool) FOrdGreaterThan 130 131 |
| 220 | Branch 127 |
| 221 | 127: Label |
| 222 | 133: 6(bool) Phi 125 122 132 126 |
| 223 | SelectionMerge 135 None |
| 224 | BranchConditional 133 134 135 |
| 225 | 134: Label |
| 226 | 136: 10(float) Load 12(of1) |
| 227 | 137: 10(float) FAdd 136 14 |
| 228 | Store 12(of1) 137 |
| 229 | Branch 135 |
| 230 | 135: Label |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 231 | Return |
| 232 | FunctionEnd |
| 233 | 8(foo(): 6(bool) Function None 7 |
| 234 | 9: Label |
| 235 | 13: 10(float) Load 12(of1) |
| 236 | 15: 10(float) FAdd 13 14 |
| 237 | Store 12(of1) 15 |
| 238 | 16: 10(float) Load 12(of1) |
| 239 | 18: 6(bool) FOrdGreaterThan 16 17 |
| 240 | ReturnValue 18 |
| 241 | FunctionEnd |