| Crates.io | shader_language_server |
| lib.rs | shader_language_server |
| version | 1.1.0 |
| created_at | 2024-10-02 17:01:46.258515+00 |
| updated_at | 2025-08-31 19:31:56.17605+00 |
| description | Language server for HLSL / GLSL / WGSL shaders using LSP protocol. |
| homepage | |
| repository | https://github.com/antaalt/shader-sense/tree/main/shader-language-server |
| max_upload_size | |
| id | 1394378 |
| size | 295,916 |
This application is a language server for shaders (HLSL, GLSL, WGSL) that is mainly meant to be used as a server for vscode extension shader-validator. It is following the LSP protocol to communicate with the extension so it could be used with any editor supporting it. It can be built to desktop or WASI. WASI will let the server run even in the browser, but it suffer from limitations. See below for more informations.
This language server support a few options :
The server support HLSL, GLSL, WGSL diagnostics, but symbol requests are not implemented for WGSL yet.
Diagnostics are generated following language specifics API:
Symbols are retrieved using queries based on tree-sitter API.
This server can be run in the browser when compiled to WASI. Because of this restriction, we can't use dxc here as it does not compile to WASI and instead rely on glslang, which is more limited in linting (Only support some basic features of SM 6.0, while DXC support all newly added SM (current 6.8)).