GLSL Linter provides linting capability for OpenGL shading language in VSCode.
This extension requires external GLSL reference compiler. You can find it here.
glsl-linter.validatorPath
- path to the GLSL validator executableglsl-linter.fileExtensions
- file extensions along with abbreviated shader stage names (vert
, tesc
, tese
, geom
, frag
, comp
).glsl-linter.validatorArgs
- additional arguments for the GLSL validatorExample configuration:
"glsl-linter.validatorPath": "/usr/local/bin/glslangValidator",
"glsl-linter.fileExtensions": {
".fs.glsl": "frag",
".vs.glsl": "vert",
".tes.glsl": "tese",
".tcs.glsl": "tesc",
".gs.glsl": "geom"
}