r/GraphicsProgramming • u/hanotak • Jan 21 '26
Found a good HLSL syntax highlighter / language server for VS code
Just as a PSA: Most of the extensions I tried either (a) didn't support modern versions of HLSL (HLSL tools), or only did syntax highlighting (no error detection / click-to-definition).
Then I found this extension: https://github.com/antaalt/shader-validator, which works perfectly even for the latest shader models.
It took me a while to find it, so I thought I'd make a post to help others find it
16
Upvotes
View all comments
Show parent comment
2
u/hanotak Jan 21 '26 edited Jan 21 '26
Shader model 6.8 adds a significant amount of new stuff to function and parameter declarations, and a bunch of builtin types and functions, all for work graphs.
For example, this is now a valid HLSL function:
SLang has no idea what to make of this, and it completely breaks intellisense.