1 spv.8bitstorage-uint.frag 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 173 5 6 Capability Shader 7 Capability CapabilityUniformAndStorageBuffer8BitAccess 8 Extension "SPV_KHR_8bit_storage" 9 1: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint Fragment 4 "main" 12 ExecutionMode 4 OriginUpperLeft 13 Source GLSL 450 14 SourceExtension "GL_EXT_shader_8bit_storage" 15 Name 4 "main" 16 Name 12 "S" 17 MemberName 12(S) 0 "x" 18 MemberName 12(S) 1 "y" 19 MemberName 12(S) 2 "z" 20 Name 17 "B2" 21 MemberName 17(B2) 0 "o" 22 MemberName 17(B2) 1 "p" 23 MemberName 17(B2) 2 "q" 24 MemberName 17(B2) 3 "r" 25 MemberName 17(B2) 4 "u" 26 MemberName 17(B2) 5 "v" 27 MemberName 17(B2) 6 "x" 28 MemberName 17(B2) 7 "w" 29 Name 19 "b2" 30 Name 23 "S" 31 MemberName 23(S) 0 "x" 32 MemberName 23(S) 1 "y" 33 MemberName 23(S) 2 "z" 34 Name 25 "B1" 35 MemberName 25(B1) 0 "a" 36 MemberName 25(B1) 1 "b" 37 MemberName 25(B1) 2 "c" 38 MemberName 25(B1) 3 "d" 39 MemberName 25(B1) 4 "g" 40 MemberName 25(B1) 5 "h" 41 MemberName 25(B1) 6 "j" 42 Name 27 "b1" 43 Name 45 "S" 44 MemberName 45(S) 0 "x" 45 MemberName 45(S) 1 "y" 46 MemberName 45(S) 2 "z" 47 Name 49 "B5" 48 MemberName 49(B5) 0 "o" 49 MemberName 49(B5) 1 "p" 50 MemberName 49(B5) 2 "q" 51 MemberName 49(B5) 3 "r" 52 MemberName 49(B5) 4 "u" 53 MemberName 49(B5) 5 "v" 54 MemberName 49(B5) 6 "x" 55 MemberName 49(B5) 7 "w" 56 Name 51 "b5" 57 Name 69 "x0" 58 Name 75 "x1" 59 Name 89 "S2" 60 MemberName 89(S2) 0 "x" 61 MemberName 89(S2) 1 "y" 62 MemberName 89(S2) 2 "z" 63 Name 90 "S3" 64 MemberName 90(S3) 0 "x" 65 Name 91 "B4" 66 MemberName 91(B4) 0 "x" 67 MemberName 91(B4) 1 "y" 68 Name 93 "b4" 69 Name 94 "S2" 70 MemberName 94(S2) 0 "x" 71 MemberName 94(S2) 1 "y" 72 MemberName 94(S2) 2 "z" 73 Name 95 "B3" 74 MemberName 95(B3) 0 "x" 75 Name 97 "b3" 76 Name 114 "v3" 77 Name 136 "u3" 78 Decorate 11 ArrayStride 1 79 MemberDecorate 12(S) 0 Offset 0 80 MemberDecorate 12(S) 1 Offset 2 81 MemberDecorate 12(S) 2 Offset 4 82 Decorate 13 ArrayStride 8 83 Decorate 15 ArrayStride 2 84 Decorate 16 ArrayStride 1 85 MemberDecorate 17(B2) 0 Offset 0 86 MemberDecorate 17(B2) 1 Offset 2 87 MemberDecorate 17(B2) 2 Offset 4 88 MemberDecorate 17(B2) 3 Offset 7 89 MemberDecorate 17(B2) 4 Offset 12 90 MemberDecorate 17(B2) 5 Offset 20 91 MemberDecorate 17(B2) 6 Offset 36 92 MemberDecorate 17(B2) 7 Offset 236 93 Decorate 17(B2) BufferBlock 94 Decorate 19(b2) DescriptorSet 0 95 Decorate 19(b2) Binding 0 96 Decorate 22 ArrayStride 16 97 MemberDecorate 23(S) 0 Offset 0 98 MemberDecorate 23(S) 1 Offset 2 99 MemberDecorate 23(S) 2 Offset 4 100 Decorate 24 ArrayStride 16 101 MemberDecorate 25(B1) 0 Offset 0 102 MemberDecorate 25(B1) 1 Offset 2 103 MemberDecorate 25(B1) 2 Offset 4 104 MemberDecorate 25(B1) 3 Offset 16 105 MemberDecorate 25(B1) 4 Offset 48 106 MemberDecorate 25(B1) 5 Offset 64 107 MemberDecorate 25(B1) 6 Offset 96 108 Decorate 25(B1) Block 109 Decorate 27(b1) DescriptorSet 0 110 Decorate 27(b1) Binding 0 111 Decorate 44 ArrayStride 16 112 MemberDecorate 45(S) 0 Offset 0 113 MemberDecorate 45(S) 1 Offset 2 114 MemberDecorate 45(S) 2 Offset 4 115 Decorate 46 ArrayStride 16 116 Decorate 47 ArrayStride 16 117 Decorate 48 ArrayStride 16 118 MemberDecorate 49(B5) 0 Offset 0 119 MemberDecorate 49(B5) 1 Offset 2 120 MemberDecorate 49(B5) 2 Offset 4 121 MemberDecorate 49(B5) 3 Offset 16 122 MemberDecorate 49(B5) 4 Offset 48 123 MemberDecorate 49(B5) 5 Offset 64 124 MemberDecorate 49(B5) 6 Offset 96 125 MemberDecorate 49(B5) 7 Offset 1696 126 Decorate 49(B5) Block 127 Decorate 51(b5) DescriptorSet 0 128 Decorate 51(b5) Binding 0 129 MemberDecorate 89(S2) 0 ColMajor 130 MemberDecorate 89(S2) 0 Offset 0 131 MemberDecorate 89(S2) 0 MatrixStride 16 132 MemberDecorate 89(S2) 1 Offset 64 133 MemberDecorate 89(S2) 2 Offset 68 134 MemberDecorate 90(S3) 0 Offset 0 135 MemberDecorate 91(B4) 0 Offset 0 136 MemberDecorate 91(B4) 1 Offset 80 137 Decorate 91(B4) BufferBlock 138 Decorate 93(b4) DescriptorSet 0 139 Decorate 93(b4) Binding 0 140 MemberDecorate 94(S2) 0 RowMajor 141 MemberDecorate 94(S2) 0 Offset 0 142 MemberDecorate 94(S2) 0 MatrixStride 16 143 MemberDecorate 94(S2) 1 Offset 64 144 MemberDecorate 94(S2) 2 Offset 68 145 MemberDecorate 95(B3) 0 Offset 0 146 Decorate 95(B3) BufferBlock 147 Decorate 97(b3) DescriptorSet 0 148 Decorate 97(b3) Binding 0 149 2: TypeVoid 150 3: TypeFunction 2 151 6: TypeInt 8 0 152 7: TypeVector 6(int8_t) 2 153 8: TypeVector 6(int8_t) 3 154 9: TypeInt 32 0 155 10: 9(int) Constant 2 156 11: TypeArray 6(int8_t) 10 157 12(S): TypeStruct 6(int8_t) 7(i8vec2) 8(i8vec3) 158 13: TypeArray 12(S) 10 159 14: 9(int) Constant 100 160 15: TypeArray 7(i8vec2) 14 161 16: TypeRuntimeArray 6(int8_t) 162 17(B2): TypeStruct 6(int8_t) 7(i8vec2) 8(i8vec3) 11 12(S) 13 15 16 163 18: TypePointer Uniform 17(B2) 164 19(b2): 18(ptr) Variable Uniform 165 20: TypeInt 32 1 166 21: 20(int) Constant 0 167 22: TypeArray 6(int8_t) 10 168 23(S): TypeStruct 6(int8_t) 7(i8vec2) 8(i8vec3) 169 24: TypeArray 23(S) 10 170 25(B1): TypeStruct 6(int8_t) 7(i8vec2) 8(i8vec3) 22 23(S) 24 9(int) 171 26: TypePointer Uniform 25(B1) 172 27(b1): 26(ptr) Variable Uniform 173 28: TypePointer Uniform 6(int8_t) 174 32: 20(int) Constant 1 175 33: 20(int) Constant 2 176 34: TypePointer Uniform 8(i8vec3) 177 37: TypeVector 9(int) 3 178 39: TypeVector 9(int) 2 179 42: TypePointer Uniform 7(i8vec2) 180 44: TypeArray 6(int8_t) 10 181 45(S): TypeStruct 6(int8_t) 7(i8vec2) 8(i8vec3) 182 46: TypeArray 45(S) 10 183 47: TypeArray 7(i8vec2) 14 184 48: TypeArray 6(int8_t) 14 185 49(B5): TypeStruct 6(int8_t) 7(i8vec2) 8(i8vec3) 44 45(S) 46 47 48 186 50: TypePointer Uniform 49(B5) 187 51(b5): 50(ptr) Variable Uniform 188 58: 20(int) Constant 3 189 68: TypePointer Function 9(int) 190 73: TypeVector 9(int) 4 191 74: TypePointer Function 73(ivec4) 192 82: 9(int) Constant 1 193 86: TypeFloat 32 194 87: TypeVector 86(float) 4 195 88: TypeMatrix 87(fvec4) 4 196 89(S2): TypeStruct 88 6(int8_t) 9(int) 197 90(S3): TypeStruct 89(S2) 198 91(B4): TypeStruct 89(S2) 90(S3) 199 92: TypePointer Uniform 91(B4) 200 93(b4): 92(ptr) Variable Uniform 201 94(S2): TypeStruct 88 6(int8_t) 9(int) 202 95(B3): TypeStruct 94(S2) 203 96: TypePointer Uniform 95(B3) 204 97(b3): 96(ptr) Variable Uniform 205 98: TypePointer Uniform 88 206 105: 9(int) Constant 0 207 109: 20(int) Constant 5 208 113: TypePointer Function 37(ivec3) 209 115: 20(int) Constant 7 210 116: 20(int) Constant 6 211 117: TypePointer Uniform 9(int) 212 167: 6(int8_t) Constant 1 213 168: 6(int8_t) Constant 2 214 169: 7(i8vec2) ConstantComposite 167 168 215 171: 6(int8_t) Constant 3 216 4(main): 2 Function None 3 217 5: Label 218 69(x0): 68(ptr) Variable Function 219 75(x1): 74(ptr) Variable Function 220 114(v3): 113(ptr) Variable Function 221 136(u3): 113(ptr) Variable Function 222 29: 28(ptr) AccessChain 27(b1) 21 223 30: 6(int8_t) Load 29 224 31: 28(ptr) AccessChain 19(b2) 21 225 Store 31 30 226 35: 34(ptr) AccessChain 19(b2) 33 227 36: 8(i8vec3) Load 35 228 38: 37(ivec3) UConvert 36 229 40: 39(ivec2) VectorShuffle 38 38 0 1 230 41: 7(i8vec2) UConvert 40 231 43: 42(ptr) AccessChain 19(b2) 32 232 Store 43 41 233 52: 34(ptr) AccessChain 51(b5) 33 234 53: 8(i8vec3) Load 52 235 54: 37(ivec3) UConvert 53 236 55: 39(ivec2) VectorShuffle 54 54 0 1 237 56: 7(i8vec2) UConvert 55 238 57: 42(ptr) AccessChain 19(b2) 32 239 Store 57 56 240 59: 28(ptr) AccessChain 19(b2) 58 21 241 60: 6(int8_t) Load 59 242 61: 28(ptr) AccessChain 19(b2) 58 21 243 Store 61 60 244 62: 28(ptr) AccessChain 51(b5) 58 32 245 63: 6(int8_t) Load 62 246 64: 28(ptr) AccessChain 19(b2) 58 32 247 Store 64 63 248 65: 42(ptr) AccessChain 19(b2) 32 249 66: 7(i8vec2) Load 65 250 67: 42(ptr) AccessChain 19(b2) 32 251 Store 67 66 252 70: 28(ptr) AccessChain 27(b1) 21 253 71: 6(int8_t) Load 70 254 72: 9(int) UConvert 71 255 Store 69(x0) 72 256 76: 28(ptr) AccessChain 27(b1) 21 257 77: 6(int8_t) Load 76 258 78: 9(int) UConvert 77 259 79: 42(ptr) AccessChain 19(b2) 32 260 80: 7(i8vec2) Load 79 261 81: 39(ivec2) UConvert 80 262 83: 9(int) CompositeExtract 81 0 263 84: 9(int) CompositeExtract 81 1 264 85: 73(ivec4) CompositeConstruct 78 83 84 82 265 Store 75(x1) 85 266 99: 98(ptr) AccessChain 97(b3) 21 21 267 100: 88 Load 99 268 101: 98(ptr) AccessChain 93(b4) 21 21 269 Store 101 100 270 102: 42(ptr) AccessChain 19(b2) 32 271 103: 7(i8vec2) Load 102 272 104: 39(ivec2) UConvert 103 273 106: 9(int) CompositeExtract 104 0 274 107: 6(int8_t) UConvert 106 275 108: 28(ptr) AccessChain 19(b2) 21 276 Store 108 107 277 110: 42(ptr) AccessChain 19(b2) 109 32 32 278 111: 7(i8vec2) Load 110 279 112: 42(ptr) AccessChain 19(b2) 32 280 Store 112 111 281 118: 117(ptr) AccessChain 27(b1) 116 282 119: 9(int) Load 118 283 120: 28(ptr) AccessChain 19(b2) 115 119 284 121: 6(int8_t) Load 120 285 122: 9(int) UConvert 121 286 123: 117(ptr) AccessChain 27(b1) 116 287 124: 9(int) Load 123 288 125: 9(int) IAdd 124 82 289 126: 28(ptr) AccessChain 19(b2) 115 125 290 127: 6(int8_t) Load 126 291 128: 9(int) UConvert 127 292 129: 117(ptr) AccessChain 27(b1) 116 293 130: 9(int) Load 129 294 131: 9(int) IAdd 130 10 295 132: 28(ptr) AccessChain 19(b2) 115 131 296 133: 6(int8_t) Load 132 297 134: 9(int) UConvert 133 298 135: 37(ivec3) CompositeConstruct 122 128 134 299 Store 114(v3) 135 300 137: 117(ptr) AccessChain 27(b1) 116 301 138: 9(int) Load 137 302 139: 28(ptr) AccessChain 51(b5) 115 138 303 140: 6(int8_t) Load 139 304 141: 9(int) UConvert 140 305 142: 117(ptr) AccessChain 27(b1) 116 306 143: 9(int) Load 142 307 144: 9(int) IAdd 143 82 308 145: 28(ptr) AccessChain 51(b5) 115 144 309 146: 6(int8_t) Load 145 310 147: 9(int) UConvert 146 311 148: 117(ptr) AccessChain 27(b1) 116 312 149: 9(int) Load 148 313 150: 9(int) IAdd 149 10 314 151: 28(ptr) AccessChain 51(b5) 115 150 315 152: 6(int8_t) Load 151 316 153: 9(int) UConvert 152 317 154: 37(ivec3) CompositeConstruct 141 147 153 318 Store 136(u3) 154 319 155: 42(ptr) AccessChain 19(b2) 116 21 320 156: 7(i8vec2) Load 155 321 157: 42(ptr) AccessChain 19(b2) 116 21 322 Store 157 156 323 158: 42(ptr) AccessChain 51(b5) 116 32 324 159: 7(i8vec2) Load 158 325 160: 42(ptr) AccessChain 19(b2) 116 32 326 Store 160 159 327 161: 28(ptr) AccessChain 27(b1) 21 328 162: 6(int8_t) Load 161 329 163: 28(ptr) AccessChain 19(b2) 32 105 330 Store 163 162 331 164: 28(ptr) AccessChain 19(b2) 32 105 332 165: 6(int8_t) Load 164 333 166: 28(ptr) AccessChain 19(b2) 21 334 Store 166 165 335 170: 42(ptr) AccessChain 19(b2) 32 336 Store 170 169 337 172: 28(ptr) AccessChain 19(b2) 21 338 Store 172 171 339 Return 340 FunctionEnd 341