Added lexars

This commit is contained in:
Toastie 2025-03-22 20:46:00 +13:00
parent 382b2ce94b
commit f9f64b0558
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
820 changed files with 149371 additions and 0 deletions

View file

@ -0,0 +1,83 @@
[
{"type":"NameDecorator","value":"@vertex"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"fn"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"vmain"},
{"type":"Punctuation","value":"("},
{"type":"NameDecorator","value":"@location"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"v"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"vec4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"-\u003e"},
{"type":"TextWhitespace","value":" "},
{"type":"NameDecorator","value":"@builtin"},
{"type":"Punctuation","value":"("},
{"type":"NameBuiltin","value":"position"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"vec4f"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"return"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"v"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"NameDecorator","value":"@fragment"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"fn"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"fmain"},
{"type":"Punctuation","value":"("},
{"type":"NameDecorator","value":"@builtin"},
{"type":"Punctuation","value":"("},
{"type":"NameBuiltin","value":"position"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"pos"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"vec4f"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"-\u003e"},
{"type":"TextWhitespace","value":" "},
{"type":"NameDecorator","value":"@location"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"vec4f"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"return"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"vec4f"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberFloat","value":"0.25"},
{"type":"Punctuation","value":","},
{"type":"LiteralNumberFloat","value":"0.25"},
{"type":"Punctuation","value":","},
{"type":"LiteralNumberFloat","value":"1.0"},
{"type":"Punctuation","value":","},
{"type":"LiteralNumberFloat","value":"1.0"},
{"type":"Punctuation","value":");"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"TextWhitespace","value":"\n"}
]