Jason Ekstrand | f44d89a | 2017-02-16 20:35:17 -0800 | [diff] [blame] | 1 | spv.image.load-formatted.frag |
| 2 | Warning, version 450 is not yet complete; most version-specific features are present, but some are missing. |
| 3 | |
| 4 | // Module Version 10000 |
| 5 | // Generated by (magic number): 80001 |
| 6 | // Id's are bound by 240 |
| 7 | |
| 8 | Capability Shader |
| 9 | Capability SampledRect |
| 10 | Capability Sampled1D |
| 11 | Capability SampledCubeArray |
| 12 | Capability SampledBuffer |
| 13 | Capability ImageMSArray |
| 14 | Capability ImageQuery |
| 15 | Capability StorageImageReadWithoutFormat |
| 16 | Capability StorageImageWriteWithoutFormat |
| 17 | 1: ExtInstImport "GLSL.std.450" |
| 18 | MemoryModel Logical GLSL450 |
| 19 | EntryPoint Fragment 4 "main" 132 142 152 233 237 239 |
| 20 | ExecutionMode 4 OriginUpperLeft |
| 21 | Source GLSL 450 |
| 22 | SourceExtension "GL_EXT_shader_image_load_formatted" |
| 23 | Name 4 "main" |
| 24 | Name 9 "iv" |
| 25 | Name 15 "i1D" |
| 26 | Name 27 "i2D" |
| 27 | Name 38 "i3D" |
| 28 | Name 45 "iCube" |
| 29 | Name 55 "iCubeArray" |
| 30 | Name 62 "i2DRect" |
| 31 | Name 72 "i1DArray" |
| 32 | Name 82 "i2DArray" |
| 33 | Name 89 "iBuffer" |
| 34 | Name 98 "i2DMS" |
| 35 | Name 108 "i2DMSArray" |
| 36 | Name 127 "v" |
| 37 | Name 132 "ic1D" |
| 38 | Name 142 "ic2D" |
| 39 | Name 152 "ic3D" |
| 40 | Name 228 "wo2D" |
| 41 | Name 233 "fragData" |
| 42 | Name 237 "ic4D" |
| 43 | Name 239 "value" |
| 44 | Decorate 15(i1D) DescriptorSet 0 |
| 45 | Decorate 15(i1D) Binding 0 |
| 46 | Decorate 27(i2D) DescriptorSet 0 |
| 47 | Decorate 27(i2D) Binding 1 |
| 48 | Decorate 38(i3D) DescriptorSet 0 |
| 49 | Decorate 38(i3D) Binding 2 |
| 50 | Decorate 45(iCube) DescriptorSet 0 |
| 51 | Decorate 45(iCube) Binding 3 |
| 52 | Decorate 55(iCubeArray) DescriptorSet 0 |
| 53 | Decorate 55(iCubeArray) Binding 4 |
| 54 | Decorate 62(i2DRect) DescriptorSet 0 |
| 55 | Decorate 62(i2DRect) Binding 5 |
| 56 | Decorate 72(i1DArray) DescriptorSet 0 |
| 57 | Decorate 72(i1DArray) Binding 6 |
| 58 | Decorate 82(i2DArray) DescriptorSet 0 |
| 59 | Decorate 82(i2DArray) Binding 7 |
| 60 | Decorate 89(iBuffer) DescriptorSet 0 |
| 61 | Decorate 89(iBuffer) Binding 8 |
| 62 | Decorate 98(i2DMS) DescriptorSet 0 |
| 63 | Decorate 98(i2DMS) Binding 9 |
| 64 | Decorate 108(i2DMSArray) DescriptorSet 0 |
| 65 | Decorate 108(i2DMSArray) Binding 10 |
| 66 | Decorate 132(ic1D) Flat |
| 67 | Decorate 142(ic2D) Flat |
| 68 | Decorate 152(ic3D) Flat |
| 69 | Decorate 228(wo2D) DescriptorSet 0 |
| 70 | Decorate 228(wo2D) Binding 1 |
| 71 | Decorate 228(wo2D) NonReadable |
| 72 | Decorate 237(ic4D) Flat |
| 73 | Decorate 239(value) Flat |
| 74 | 2: TypeVoid |
| 75 | 3: TypeFunction 2 |
| 76 | 6: TypeInt 32 1 |
| 77 | 7: TypeVector 6(int) 3 |
| 78 | 8: TypePointer Function 7(ivec3) |
| 79 | 10: 6(int) Constant 0 |
| 80 | 11: 7(ivec3) ConstantComposite 10 10 10 |
| 81 | 12: TypeFloat 32 |
| 82 | 13: TypeImage 12(float) 1D nonsampled format:Unknown |
| 83 | 14: TypePointer UniformConstant 13 |
| 84 | 15(i1D): 14(ptr) Variable UniformConstant |
| 85 | 18: TypeInt 32 0 |
| 86 | 19: 18(int) Constant 0 |
| 87 | 20: TypePointer Function 6(int) |
| 88 | 25: TypeImage 12(float) 2D nonsampled format:Unknown |
| 89 | 26: TypePointer UniformConstant 25 |
| 90 | 27(i2D): 26(ptr) Variable UniformConstant |
| 91 | 29: TypeVector 6(int) 2 |
| 92 | 36: TypeImage 12(float) 3D nonsampled format:Unknown |
| 93 | 37: TypePointer UniformConstant 36 |
| 94 | 38(i3D): 37(ptr) Variable UniformConstant |
| 95 | 43: TypeImage 12(float) Cube nonsampled format:Unknown |
| 96 | 44: TypePointer UniformConstant 43 |
| 97 | 45(iCube): 44(ptr) Variable UniformConstant |
| 98 | 53: TypeImage 12(float) Cube array nonsampled format:Unknown |
| 99 | 54: TypePointer UniformConstant 53 |
| 100 | 55(iCubeArray): 54(ptr) Variable UniformConstant |
| 101 | 60: TypeImage 12(float) Rect nonsampled format:Unknown |
| 102 | 61: TypePointer UniformConstant 60 |
| 103 | 62(i2DRect): 61(ptr) Variable UniformConstant |
| 104 | 70: TypeImage 12(float) 1D array nonsampled format:Unknown |
| 105 | 71: TypePointer UniformConstant 70 |
| 106 | 72(i1DArray): 71(ptr) Variable UniformConstant |
| 107 | 80: TypeImage 12(float) 2D array nonsampled format:Unknown |
| 108 | 81: TypePointer UniformConstant 80 |
| 109 | 82(i2DArray): 81(ptr) Variable UniformConstant |
| 110 | 87: TypeImage 12(float) Buffer nonsampled format:Unknown |
| 111 | 88: TypePointer UniformConstant 87 |
| 112 | 89(iBuffer): 88(ptr) Variable UniformConstant |
| 113 | 96: TypeImage 12(float) 2D multi-sampled nonsampled format:Unknown |
| 114 | 97: TypePointer UniformConstant 96 |
| 115 | 98(i2DMS): 97(ptr) Variable UniformConstant |
| 116 | 106: TypeImage 12(float) 2D array multi-sampled nonsampled format:Unknown |
| 117 | 107: TypePointer UniformConstant 106 |
| 118 | 108(i2DMSArray): 107(ptr) Variable UniformConstant |
| 119 | 125: TypeVector 12(float) 4 |
| 120 | 126: TypePointer Function 125(fvec4) |
| 121 | 128: 12(float) Constant 0 |
| 122 | 129: 125(fvec4) ConstantComposite 128 128 128 128 |
| 123 | 131: TypePointer Input 6(int) |
| 124 | 132(ic1D): 131(ptr) Variable Input |
| 125 | 141: TypePointer Input 29(ivec2) |
| 126 | 142(ic2D): 141(ptr) Variable Input |
| 127 | 151: TypePointer Input 7(ivec3) |
| 128 | 152(ic3D): 151(ptr) Variable Input |
| 129 | 210: 6(int) Constant 1 |
| 130 | 216: 6(int) Constant 2 |
| 131 | 220: 6(int) Constant 3 |
| 132 | 226: 6(int) Constant 4 |
| 133 | 228(wo2D): 26(ptr) Variable UniformConstant |
| 134 | 232: TypePointer Output 125(fvec4) |
| 135 | 233(fragData): 232(ptr) Variable Output |
| 136 | 235: TypeVector 6(int) 4 |
| 137 | 236: TypePointer Input 235(ivec4) |
| 138 | 237(ic4D): 236(ptr) Variable Input |
| 139 | 238: TypePointer Input 18(int) |
| 140 | 239(value): 238(ptr) Variable Input |
| 141 | 4(main): 2 Function None 3 |
| 142 | 5: Label |
| 143 | 9(iv): 8(ptr) Variable Function |
| 144 | 127(v): 126(ptr) Variable Function |
| 145 | Store 9(iv) 11 |
| 146 | 16: 13 Load 15(i1D) |
| 147 | 17: 6(int) ImageQuerySize 16 |
| 148 | 21: 20(ptr) AccessChain 9(iv) 19 |
| 149 | 22: 6(int) Load 21 |
| 150 | 23: 6(int) IAdd 22 17 |
| 151 | 24: 20(ptr) AccessChain 9(iv) 19 |
| 152 | Store 24 23 |
| 153 | 28: 25 Load 27(i2D) |
| 154 | 30: 29(ivec2) ImageQuerySize 28 |
| 155 | 31: 7(ivec3) Load 9(iv) |
| 156 | 32: 29(ivec2) VectorShuffle 31 31 0 1 |
| 157 | 33: 29(ivec2) IAdd 32 30 |
| 158 | 34: 7(ivec3) Load 9(iv) |
| 159 | 35: 7(ivec3) VectorShuffle 34 33 3 4 2 |
| 160 | Store 9(iv) 35 |
| 161 | 39: 36 Load 38(i3D) |
| 162 | 40: 7(ivec3) ImageQuerySize 39 |
| 163 | 41: 7(ivec3) Load 9(iv) |
| 164 | 42: 7(ivec3) IAdd 41 40 |
| 165 | Store 9(iv) 42 |
| 166 | 46: 43 Load 45(iCube) |
| 167 | 47: 29(ivec2) ImageQuerySize 46 |
| 168 | 48: 7(ivec3) Load 9(iv) |
| 169 | 49: 29(ivec2) VectorShuffle 48 48 0 1 |
| 170 | 50: 29(ivec2) IAdd 49 47 |
| 171 | 51: 7(ivec3) Load 9(iv) |
| 172 | 52: 7(ivec3) VectorShuffle 51 50 3 4 2 |
| 173 | Store 9(iv) 52 |
| 174 | 56: 53 Load 55(iCubeArray) |
| 175 | 57: 7(ivec3) ImageQuerySize 56 |
| 176 | 58: 7(ivec3) Load 9(iv) |
| 177 | 59: 7(ivec3) IAdd 58 57 |
| 178 | Store 9(iv) 59 |
| 179 | 63: 60 Load 62(i2DRect) |
| 180 | 64: 29(ivec2) ImageQuerySize 63 |
| 181 | 65: 7(ivec3) Load 9(iv) |
| 182 | 66: 29(ivec2) VectorShuffle 65 65 0 1 |
| 183 | 67: 29(ivec2) IAdd 66 64 |
| 184 | 68: 7(ivec3) Load 9(iv) |
| 185 | 69: 7(ivec3) VectorShuffle 68 67 3 4 2 |
| 186 | Store 9(iv) 69 |
| 187 | 73: 70 Load 72(i1DArray) |
| 188 | 74: 29(ivec2) ImageQuerySize 73 |
| 189 | 75: 7(ivec3) Load 9(iv) |
| 190 | 76: 29(ivec2) VectorShuffle 75 75 0 1 |
| 191 | 77: 29(ivec2) IAdd 76 74 |
| 192 | 78: 7(ivec3) Load 9(iv) |
| 193 | 79: 7(ivec3) VectorShuffle 78 77 3 4 2 |
| 194 | Store 9(iv) 79 |
| 195 | 83: 80 Load 82(i2DArray) |
| 196 | 84: 7(ivec3) ImageQuerySize 83 |
| 197 | 85: 7(ivec3) Load 9(iv) |
| 198 | 86: 7(ivec3) IAdd 85 84 |
| 199 | Store 9(iv) 86 |
| 200 | 90: 87 Load 89(iBuffer) |
| 201 | 91: 6(int) ImageQuerySize 90 |
| 202 | 92: 20(ptr) AccessChain 9(iv) 19 |
| 203 | 93: 6(int) Load 92 |
| 204 | 94: 6(int) IAdd 93 91 |
| 205 | 95: 20(ptr) AccessChain 9(iv) 19 |
| 206 | Store 95 94 |
| 207 | 99: 96 Load 98(i2DMS) |
| 208 | 100: 29(ivec2) ImageQuerySize 99 |
| 209 | 101: 7(ivec3) Load 9(iv) |
| 210 | 102: 29(ivec2) VectorShuffle 101 101 0 1 |
| 211 | 103: 29(ivec2) IAdd 102 100 |
| 212 | 104: 7(ivec3) Load 9(iv) |
| 213 | 105: 7(ivec3) VectorShuffle 104 103 3 4 2 |
| 214 | Store 9(iv) 105 |
| 215 | 109: 106 Load 108(i2DMSArray) |
| 216 | 110: 7(ivec3) ImageQuerySize 109 |
| 217 | 111: 7(ivec3) Load 9(iv) |
| 218 | 112: 7(ivec3) IAdd 111 110 |
| 219 | Store 9(iv) 112 |
| 220 | 113: 96 Load 98(i2DMS) |
| 221 | 114: 6(int) ImageQuerySamples 113 |
| 222 | 115: 20(ptr) AccessChain 9(iv) 19 |
| 223 | 116: 6(int) Load 115 |
| 224 | 117: 6(int) IAdd 116 114 |
| 225 | 118: 20(ptr) AccessChain 9(iv) 19 |
| 226 | Store 118 117 |
| 227 | 119: 106 Load 108(i2DMSArray) |
| 228 | 120: 6(int) ImageQuerySamples 119 |
| 229 | 121: 20(ptr) AccessChain 9(iv) 19 |
| 230 | 122: 6(int) Load 121 |
| 231 | 123: 6(int) IAdd 122 120 |
| 232 | 124: 20(ptr) AccessChain 9(iv) 19 |
| 233 | Store 124 123 |
| 234 | Store 127(v) 129 |
| 235 | 130: 13 Load 15(i1D) |
| 236 | 133: 6(int) Load 132(ic1D) |
| 237 | 134: 125(fvec4) ImageRead 130 133 |
| 238 | 135: 125(fvec4) Load 127(v) |
| 239 | 136: 125(fvec4) FAdd 135 134 |
| 240 | Store 127(v) 136 |
| 241 | 137: 13 Load 15(i1D) |
| 242 | 138: 6(int) Load 132(ic1D) |
| 243 | 139: 125(fvec4) Load 127(v) |
| 244 | ImageWrite 137 138 139 |
| 245 | 140: 25 Load 27(i2D) |
| 246 | 143: 29(ivec2) Load 142(ic2D) |
| 247 | 144: 125(fvec4) ImageRead 140 143 |
| 248 | 145: 125(fvec4) Load 127(v) |
| 249 | 146: 125(fvec4) FAdd 145 144 |
| 250 | Store 127(v) 146 |
| 251 | 147: 25 Load 27(i2D) |
| 252 | 148: 29(ivec2) Load 142(ic2D) |
| 253 | 149: 125(fvec4) Load 127(v) |
| 254 | ImageWrite 147 148 149 |
| 255 | 150: 36 Load 38(i3D) |
| 256 | 153: 7(ivec3) Load 152(ic3D) |
| 257 | 154: 125(fvec4) ImageRead 150 153 |
| 258 | 155: 125(fvec4) Load 127(v) |
| 259 | 156: 125(fvec4) FAdd 155 154 |
| 260 | Store 127(v) 156 |
| 261 | 157: 36 Load 38(i3D) |
| 262 | 158: 7(ivec3) Load 152(ic3D) |
| 263 | 159: 125(fvec4) Load 127(v) |
| 264 | ImageWrite 157 158 159 |
| 265 | 160: 43 Load 45(iCube) |
| 266 | 161: 7(ivec3) Load 152(ic3D) |
| 267 | 162: 125(fvec4) ImageRead 160 161 |
| 268 | 163: 125(fvec4) Load 127(v) |
| 269 | 164: 125(fvec4) FAdd 163 162 |
| 270 | Store 127(v) 164 |
| 271 | 165: 43 Load 45(iCube) |
| 272 | 166: 7(ivec3) Load 152(ic3D) |
| 273 | 167: 125(fvec4) Load 127(v) |
| 274 | ImageWrite 165 166 167 |
| 275 | 168: 53 Load 55(iCubeArray) |
| 276 | 169: 7(ivec3) Load 152(ic3D) |
| 277 | 170: 125(fvec4) ImageRead 168 169 |
| 278 | 171: 125(fvec4) Load 127(v) |
| 279 | 172: 125(fvec4) FAdd 171 170 |
| 280 | Store 127(v) 172 |
| 281 | 173: 53 Load 55(iCubeArray) |
| 282 | 174: 7(ivec3) Load 152(ic3D) |
| 283 | 175: 125(fvec4) Load 127(v) |
| 284 | ImageWrite 173 174 175 |
| 285 | 176: 60 Load 62(i2DRect) |
| 286 | 177: 29(ivec2) Load 142(ic2D) |
| 287 | 178: 125(fvec4) ImageRead 176 177 |
| 288 | 179: 125(fvec4) Load 127(v) |
| 289 | 180: 125(fvec4) FAdd 179 178 |
| 290 | Store 127(v) 180 |
| 291 | 181: 60 Load 62(i2DRect) |
| 292 | 182: 29(ivec2) Load 142(ic2D) |
| 293 | 183: 125(fvec4) Load 127(v) |
| 294 | ImageWrite 181 182 183 |
| 295 | 184: 70 Load 72(i1DArray) |
| 296 | 185: 29(ivec2) Load 142(ic2D) |
| 297 | 186: 125(fvec4) ImageRead 184 185 |
| 298 | 187: 125(fvec4) Load 127(v) |
| 299 | 188: 125(fvec4) FAdd 187 186 |
| 300 | Store 127(v) 188 |
| 301 | 189: 70 Load 72(i1DArray) |
| 302 | 190: 29(ivec2) Load 142(ic2D) |
| 303 | 191: 125(fvec4) Load 127(v) |
| 304 | ImageWrite 189 190 191 |
| 305 | 192: 80 Load 82(i2DArray) |
| 306 | 193: 7(ivec3) Load 152(ic3D) |
| 307 | 194: 125(fvec4) ImageRead 192 193 |
| 308 | 195: 125(fvec4) Load 127(v) |
| 309 | 196: 125(fvec4) FAdd 195 194 |
| 310 | Store 127(v) 196 |
| 311 | 197: 80 Load 82(i2DArray) |
| 312 | 198: 7(ivec3) Load 152(ic3D) |
| 313 | 199: 125(fvec4) Load 127(v) |
| 314 | ImageWrite 197 198 199 |
| 315 | 200: 87 Load 89(iBuffer) |
| 316 | 201: 6(int) Load 132(ic1D) |
| 317 | 202: 125(fvec4) ImageRead 200 201 |
| 318 | 203: 125(fvec4) Load 127(v) |
| 319 | 204: 125(fvec4) FAdd 203 202 |
| 320 | Store 127(v) 204 |
| 321 | 205: 87 Load 89(iBuffer) |
| 322 | 206: 6(int) Load 132(ic1D) |
| 323 | 207: 125(fvec4) Load 127(v) |
| 324 | ImageWrite 205 206 207 |
| 325 | 208: 96 Load 98(i2DMS) |
| 326 | 209: 29(ivec2) Load 142(ic2D) |
| 327 | 211: 125(fvec4) ImageRead 208 209 Sample 210 |
| 328 | 212: 125(fvec4) Load 127(v) |
| 329 | 213: 125(fvec4) FAdd 212 211 |
| 330 | Store 127(v) 213 |
| 331 | 214: 96 Load 98(i2DMS) |
| 332 | 215: 29(ivec2) Load 142(ic2D) |
| 333 | 217: 125(fvec4) Load 127(v) |
| 334 | ImageWrite 214 215 217 Sample 216 |
| 335 | 218: 106 Load 108(i2DMSArray) |
| 336 | 219: 7(ivec3) Load 152(ic3D) |
| 337 | 221: 125(fvec4) ImageRead 218 219 Sample 220 |
| 338 | 222: 125(fvec4) Load 127(v) |
| 339 | 223: 125(fvec4) FAdd 222 221 |
| 340 | Store 127(v) 223 |
| 341 | 224: 106 Load 108(i2DMSArray) |
| 342 | 225: 7(ivec3) Load 152(ic3D) |
| 343 | 227: 125(fvec4) Load 127(v) |
| 344 | ImageWrite 224 225 227 Sample 226 |
| 345 | 229: 25 Load 228(wo2D) |
| 346 | 230: 29(ivec2) Load 142(ic2D) |
| 347 | 231: 125(fvec4) Load 127(v) |
| 348 | ImageWrite 229 230 231 |
| 349 | 234: 125(fvec4) Load 127(v) |
| 350 | Store 233(fragData) 234 |
| 351 | Return |
| 352 | FunctionEnd |