chroma/lexers/testdata/wgsl.storage.texture.expected
2025-03-22 20:46:00 +13:00

82 lines
3.3 KiB
Text

[
{"type":"NameDecorator","value":"@group"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"NameDecorator","value":"@binding"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"var"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"texture_storage_1d"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"rgba8unorm"},
{"type":"Punctuation","value":","},
{"type":"NameBuiltin","value":"write"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"NameDecorator","value":"@group"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"NameDecorator","value":"@binding"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"var"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"texture_storage_2d"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"rgba8unorm"},
{"type":"Punctuation","value":","},
{"type":"NameBuiltin","value":"write"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"NameDecorator","value":"@group"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"NameDecorator","value":"@binding"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"2"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"var"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"texture_storage_2d_array"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"rgba8unorm"},
{"type":"Punctuation","value":","},
{"type":"NameBuiltin","value":"write"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"NameDecorator","value":"@group"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"NameDecorator","value":"@binding"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"3"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"var"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"texture_storage_3d"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"rgba8unorm"},
{"type":"Punctuation","value":","},
{"type":"NameBuiltin","value":"write"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"}
]