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