Shader validatorThis is a vscode extension allowing syntax highlighting & linting for HLSL / GLSL / WGSL shaders. It is using shader-language-server to lint shaders using common validator API. Currently, it support some features and languages:
FeaturesSyntax highlightingThis extension provide syntax highlighting for HLSL, GLSL & WGSL. It also provides some really basic auto completion. LintingYou cant lint your code in real time through this extension:
AutocompletionThe extension will suggest you symbols from your file and intrinsics as you type. SigatureView available signatures for your function as you type it. HoverView informations relative to a symbol by hovering it. GotoGo to your declaration definition by clicking on it. Extension SettingsThis extension contributes the following settings:
Web supportThis extension run on the web on vscode.dev. It is relying on the WebAssembly Execution engine that is currently in pre-release. Because of this restriction, we can't use dxc on the web as it does not compile to WASI and instead rely on glslang, which is more limited in linting (Only support SM 5.0, same as FXC, while DXC support SM 6.0 and more). CreditsThis extension is based on a heavily modified version of PolyMeilex vscode-wgsl |