Debian Codegraph @

tests/snippets/wgsl/depth-texture.txt

raw
1 ---input---
2 @group(0) @binding(1) var texture_depth_2d;
3 @group(0) @binding(2) var texture_depth_2d_array;
4 @group(0) @binding(4) var texture_depth_cube;
5 @group(0) @binding(5) var texture_depth_cube_array;
6 @group(0) @binding(5) var texture_depth_multisampled_2d;
7
8 ---tokens---
9 '@' Name.Decorator
10 'group' Name.Decorator
11 '(' Punctuation
12 '0' Literal.Number.Integer
13 ')' Punctuation
14 ' ' Text.Whitespace
15 '@' Name.Decorator
16 'binding' Name.Decorator
17 '(' Punctuation
18 '1' Literal.Number.Integer
19 ')' Punctuation
20 ' ' Text.Whitespace
21 'var' Keyword.Declaration
22 ' ' Text.Whitespace
23 'texture_depth_2d' Name.Builtin
24 ';' Punctuation
25 '\n' Text.Whitespace
26
27 '@' Name.Decorator
28 'group' Name.Decorator
29 '(' Punctuation
30 '0' Literal.Number.Integer
31 ')' Punctuation
32 ' ' Text.Whitespace
33 '@' Name.Decorator
34 'binding' Name.Decorator
35 '(' Punctuation
36 '2' Literal.Number.Integer
37 ')' Punctuation
38 ' ' Text.Whitespace
39 'var' Keyword.Declaration
40 ' ' Text.Whitespace
41 'texture_depth_2d_array' Name.Builtin
42 ';' Punctuation
43 '\n' Text.Whitespace
44
45 '@' Name.Decorator
46 'group' Name.Decorator
47 '(' Punctuation
48 '0' Literal.Number.Integer
49 ')' Punctuation
50 ' ' Text.Whitespace
51 '@' Name.Decorator
52 'binding' Name.Decorator
53 '(' Punctuation
54 '4' Literal.Number.Integer
55 ')' Punctuation
56 ' ' Text.Whitespace
57 'var' Keyword.Declaration
58 ' ' Text.Whitespace
59 'texture_depth_cube' Name.Builtin
60 ';' Punctuation
61 '\n' Text.Whitespace
62
63 '@' Name.Decorator
64 'group' Name.Decorator
65 '(' Punctuation
66 '0' Literal.Number.Integer
67 ')' Punctuation
68 ' ' Text.Whitespace
69 '@' Name.Decorator
70 'binding' Name.Decorator
71 '(' Punctuation
72 '5' Literal.Number.Integer
73 ')' Punctuation
74 ' ' Text.Whitespace
75 'var' Keyword.Declaration
76 ' ' Text.Whitespace
77 'texture_depth_cube_array' Name.Builtin
78 ';' Punctuation
79 '\n' Text.Whitespace
80
81 '@' Name.Decorator
82 'group' Name.Decorator
83 '(' Punctuation
84 '0' Literal.Number.Integer
85 ')' Punctuation
86 ' ' Text.Whitespace
87 '@' Name.Decorator
88 'binding' Name.Decorator
89 '(' Punctuation
90 '5' Literal.Number.Integer
91 ')' Punctuation
92 ' ' Text.Whitespace
93 'var' Keyword.Declaration
94 ' ' Text.Whitespace
95 'texture_depth_multisampled_2d' Name.Builtin
96 ';' Punctuation
97 '\n' Text.Whitespace