Debian Codegraph @

tests/snippets/wgsl/texel-formats.txt

raw
1 ---input---
2 @group(0) @binding(0) var texture_storage_2d<rgba8unorm,write>;
3 @group(0) @binding(1) var texture_storage_2d<rgba8snorm,write>;
4 @group(0) @binding(2) var texture_storage_2d<rgba8uint,write>;
5 @group(0) @binding(3) var texture_storage_2d<rgba8sint,write>;
6 @group(0) @binding(4) var texture_storage_2d<rgba16uint,write>;
7 @group(0) @binding(5) var texture_storage_2d<rgba16sint,write>;
8 @group(0) @binding(6) var texture_storage_2d<rgba16float,write>;
9 @group(0) @binding(7) var texture_storage_2d<r32uint,write>;
10 @group(0) @binding(8) var texture_storage_2d<r32sint,write>;
11 @group(0) @binding(9) var texture_storage_2d<r32float,write>;
12 @group(1) @binding(0) var texture_storage_2d<rg32uint,write>;
13 @group(1) @binding(1) var texture_storage_2d<rg32sint,write>;
14 @group(1) @binding(2) var texture_storage_2d<rg32float,write>;
15 @group(1) @binding(3) var texture_storage_2d<rgba32uint,write>;
16 @group(1) @binding(4) var texture_storage_2d<rgba32sint,write>;
17 @group(1) @binding(5) var texture_storage_2d<rgba32float,write>;
18 @group(1) @binding(6) var texture_storage_2d<bgra8unorm,write>;
19
20 ---tokens---
21 '@' Name.Decorator
22 'group' Name.Decorator
23 '(' Punctuation
24 '0' Literal.Number.Integer
25 ')' Punctuation
26 ' ' Text.Whitespace
27 '@' Name.Decorator
28 'binding' Name.Decorator
29 '(' Punctuation
30 '0' Literal.Number.Integer
31 ')' Punctuation
32 ' ' Text.Whitespace
33 'var' Keyword.Declaration
34 ' ' Text.Whitespace
35 'texture_storage_2d' Name.Builtin
36 '<' Operator
37 'rgba8unorm' Name.Builtin
38 ',' Punctuation
39 'write' Name.Builtin
40 '>' Operator
41 ';' Punctuation
42 '\n' Text.Whitespace
43
44 '@' Name.Decorator
45 'group' Name.Decorator
46 '(' Punctuation
47 '0' Literal.Number.Integer
48 ')' Punctuation
49 ' ' Text.Whitespace
50 '@' Name.Decorator
51 'binding' Name.Decorator
52 '(' Punctuation
53 '1' Literal.Number.Integer
54 ')' Punctuation
55 ' ' Text.Whitespace
56 'var' Keyword.Declaration
57 ' ' Text.Whitespace
58 'texture_storage_2d' Name.Builtin
59 '<' Operator
60 'rgba8snorm' Name.Builtin
61 ',' Punctuation
62 'write' Name.Builtin
63 '>' Operator
64 ';' Punctuation
65 '\n' Text.Whitespace
66
67 '@' Name.Decorator
68 'group' Name.Decorator
69 '(' Punctuation
70 '0' Literal.Number.Integer
71 ')' Punctuation
72 ' ' Text.Whitespace
73 '@' Name.Decorator
74 'binding' Name.Decorator
75 '(' Punctuation
76 '2' Literal.Number.Integer
77 ')' Punctuation
78 ' ' Text.Whitespace
79 'var' Keyword.Declaration
80 ' ' Text.Whitespace
81 'texture_storage_2d' Name.Builtin
82 '<' Operator
83 'rgba8uint' Name.Builtin
84 ',' Punctuation
85 'write' Name.Builtin
86 '>' Operator
87 ';' Punctuation
88 '\n' Text.Whitespace
89
90 '@' Name.Decorator
91 'group' Name.Decorator
92 '(' Punctuation
93 '0' Literal.Number.Integer
94 ')' Punctuation
95 ' ' Text.Whitespace
96 '@' Name.Decorator
97 'binding' Name.Decorator
98 '(' Punctuation
99 '3' Literal.Number.Integer
100 ')' Punctuation
101 ' ' Text.Whitespace
102 'var' Keyword.Declaration
103 ' ' Text.Whitespace
104 'texture_storage_2d' Name.Builtin
105 '<' Operator
106 'rgba8sint' Name.Builtin
107 ',' Punctuation
108 'write' Name.Builtin
109 '>' Operator
110 ';' Punctuation
111 '\n' Text.Whitespace
112
113 '@' Name.Decorator
114 'group' Name.Decorator
115 '(' Punctuation
116 '0' Literal.Number.Integer
117 ')' Punctuation
118 ' ' Text.Whitespace
119 '@' Name.Decorator
120 'binding' Name.Decorator
121 '(' Punctuation
122 '4' Literal.Number.Integer
123 ')' Punctuation
124 ' ' Text.Whitespace
125 'var' Keyword.Declaration
126 ' ' Text.Whitespace
127 'texture_storage_2d' Name.Builtin
128 '<' Operator
129 'rgba16uint' Name.Builtin
130 ',' Punctuation
131 'write' Name.Builtin
132 '>' Operator
133 ';' Punctuation
134 '\n' Text.Whitespace
135
136 '@' Name.Decorator
137 'group' Name.Decorator
138 '(' Punctuation
139 '0' Literal.Number.Integer
140 ')' Punctuation
141 ' ' Text.Whitespace
142 '@' Name.Decorator
143 'binding' Name.Decorator
144 '(' Punctuation
145 '5' Literal.Number.Integer
146 ')' Punctuation
147 ' ' Text.Whitespace
148 'var' Keyword.Declaration
149 ' ' Text.Whitespace
150 'texture_storage_2d' Name.Builtin
151 '<' Operator
152 'rgba16sint' Name.Builtin
153 ',' Punctuation
154 'write' Name.Builtin
155 '>' Operator
156 ';' Punctuation
157 '\n' Text.Whitespace
158
159 '@' Name.Decorator
160 'group' Name.Decorator
161 '(' Punctuation
162 '0' Literal.Number.Integer
163 ')' Punctuation
164 ' ' Text.Whitespace
165 '@' Name.Decorator
166 'binding' Name.Decorator
167 '(' Punctuation
168 '6' Literal.Number.Integer
169 ')' Punctuation
170 ' ' Text.Whitespace
171 'var' Keyword.Declaration
172 ' ' Text.Whitespace
173 'texture_storage_2d' Name.Builtin
174 '<' Operator
175 'rgba16float' Name.Builtin
176 ',' Punctuation
177 'write' Name.Builtin
178 '>' Operator
179 ';' Punctuation
180 '\n' Text.Whitespace
181
182 '@' Name.Decorator
183 'group' Name.Decorator
184 '(' Punctuation
185 '0' Literal.Number.Integer
186 ')' Punctuation
187 ' ' Text.Whitespace
188 '@' Name.Decorator
189 'binding' Name.Decorator
190 '(' Punctuation
191 '7' Literal.Number.Integer
192 ')' Punctuation
193 ' ' Text.Whitespace
194 'var' Keyword.Declaration
195 ' ' Text.Whitespace
196 'texture_storage_2d' Name.Builtin
197 '<' Operator
198 'r32uint' Name.Builtin
199 ',' Punctuation
200 'write' Name.Builtin
201 '>' Operator
202 ';' Punctuation
203 '\n' Text.Whitespace
204
205 '@' Name.Decorator
206 'group' Name.Decorator
207 '(' Punctuation
208 '0' Literal.Number.Integer
209 ')' Punctuation
210 ' ' Text.Whitespace
211 '@' Name.Decorator
212 'binding' Name.Decorator
213 '(' Punctuation
214 '8' Literal.Number.Integer
215 ')' Punctuation
216 ' ' Text.Whitespace
217 'var' Keyword.Declaration
218 ' ' Text.Whitespace
219 'texture_storage_2d' Name.Builtin
220 '<' Operator
221 'r32sint' Name.Builtin
222 ',' Punctuation
223 'write' Name.Builtin
224 '>' Operator
225 ';' Punctuation
226 '\n' Text.Whitespace
227
228 '@' Name.Decorator
229 'group' Name.Decorator
230 '(' Punctuation
231 '0' Literal.Number.Integer
232 ')' Punctuation
233 ' ' Text.Whitespace
234 '@' Name.Decorator
235 'binding' Name.Decorator
236 '(' Punctuation
237 '9' Literal.Number.Integer
238 ')' Punctuation
239 ' ' Text.Whitespace
240 'var' Keyword.Declaration
241 ' ' Text.Whitespace
242 'texture_storage_2d' Name.Builtin
243 '<' Operator
244 'r32float' Name.Builtin
245 ',' Punctuation
246 'write' Name.Builtin
247 '>' Operator
248 ';' Punctuation
249 '\n' Text.Whitespace
250
251 '@' Name.Decorator
252 'group' Name.Decorator
253 '(' Punctuation
254 '1' Literal.Number.Integer
255 ')' Punctuation
256 ' ' Text.Whitespace
257 '@' Name.Decorator
258 'binding' Name.Decorator
259 '(' Punctuation
260 '0' Literal.Number.Integer
261 ')' Punctuation
262 ' ' Text.Whitespace
263 'var' Keyword.Declaration
264 ' ' Text.Whitespace
265 'texture_storage_2d' Name.Builtin
266 '<' Operator
267 'rg32uint' Name.Builtin
268 ',' Punctuation
269 'write' Name.Builtin
270 '>' Operator
271 ';' Punctuation
272 '\n' Text.Whitespace
273
274 '@' Name.Decorator
275 'group' Name.Decorator
276 '(' Punctuation
277 '1' Literal.Number.Integer
278 ')' Punctuation
279 ' ' Text.Whitespace
280 '@' Name.Decorator
281 'binding' Name.Decorator
282 '(' Punctuation
283 '1' Literal.Number.Integer
284 ')' Punctuation
285 ' ' Text.Whitespace
286 'var' Keyword.Declaration
287 ' ' Text.Whitespace
288 'texture_storage_2d' Name.Builtin
289 '<' Operator
290 'rg32sint' Name.Builtin
291 ',' Punctuation
292 'write' Name.Builtin
293 '>' Operator
294 ';' Punctuation
295 '\n' Text.Whitespace
296
297 '@' Name.Decorator
298 'group' Name.Decorator
299 '(' Punctuation
300 '1' Literal.Number.Integer
301 ')' Punctuation
302 ' ' Text.Whitespace
303 '@' Name.Decorator
304 'binding' Name.Decorator
305 '(' Punctuation
306 '2' Literal.Number.Integer
307 ')' Punctuation
308 ' ' Text.Whitespace
309 'var' Keyword.Declaration
310 ' ' Text.Whitespace
311 'texture_storage_2d' Name.Builtin
312 '<' Operator
313 'rg32float' Name.Builtin
314 ',' Punctuation
315 'write' Name.Builtin
316 '>' Operator
317 ';' Punctuation
318 '\n' Text.Whitespace
319
320 '@' Name.Decorator
321 'group' Name.Decorator
322 '(' Punctuation
323 '1' Literal.Number.Integer
324 ')' Punctuation
325 ' ' Text.Whitespace
326 '@' Name.Decorator
327 'binding' Name.Decorator
328 '(' Punctuation
329 '3' Literal.Number.Integer
330 ')' Punctuation
331 ' ' Text.Whitespace
332 'var' Keyword.Declaration
333 ' ' Text.Whitespace
334 'texture_storage_2d' Name.Builtin
335 '<' Operator
336 'rgba32uint' Name.Builtin
337 ',' Punctuation
338 'write' Name.Builtin
339 '>' Operator
340 ';' Punctuation
341 '\n' Text.Whitespace
342
343 '@' Name.Decorator
344 'group' Name.Decorator
345 '(' Punctuation
346 '1' Literal.Number.Integer
347 ')' Punctuation
348 ' ' Text.Whitespace
349 '@' Name.Decorator
350 'binding' Name.Decorator
351 '(' Punctuation
352 '4' Literal.Number.Integer
353 ')' Punctuation
354 ' ' Text.Whitespace
355 'var' Keyword.Declaration
356 ' ' Text.Whitespace
357 'texture_storage_2d' Name.Builtin
358 '<' Operator
359 'rgba32sint' Name.Builtin
360 ',' Punctuation
361 'write' Name.Builtin
362 '>' Operator
363 ';' Punctuation
364 '\n' Text.Whitespace
365
366 '@' Name.Decorator
367 'group' Name.Decorator
368 '(' Punctuation
369 '1' Literal.Number.Integer
370 ')' Punctuation
371 ' ' Text.Whitespace
372 '@' Name.Decorator
373 'binding' Name.Decorator
374 '(' Punctuation
375 '5' Literal.Number.Integer
376 ')' Punctuation
377 ' ' Text.Whitespace
378 'var' Keyword.Declaration
379 ' ' Text.Whitespace
380 'texture_storage_2d' Name.Builtin
381 '<' Operator
382 'rgba32float' Name.Builtin
383 ',' Punctuation
384 'write' Name.Builtin
385 '>' Operator
386 ';' Punctuation
387 '\n' Text.Whitespace
388
389 '@' Name.Decorator
390 'group' Name.Decorator
391 '(' Punctuation
392 '1' Literal.Number.Integer
393 ')' Punctuation
394 ' ' Text.Whitespace
395 '@' Name.Decorator
396 'binding' Name.Decorator
397 '(' Punctuation
398 '6' Literal.Number.Integer
399 ')' Punctuation
400 ' ' Text.Whitespace
401 'var' Keyword.Declaration
402 ' ' Text.Whitespace
403 'texture_storage_2d' Name.Builtin
404 '<' Operator
405 'bgra8unorm' Name.Builtin
406 ',' Punctuation
407 'write' Name.Builtin
408 '>' Operator
409 ';' Punctuation
410 '\n' Text.Whitespace