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