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