在VsCode中设置GLSLValidatorPath

问题描述 投票:1回答:1

我开始阅读The book of shader,我想在VsCode中开发一些东西。

我安装了这些扩展:

  • GLSL功能区
  • GLSL帆布
  • Shaderc GLSL Linter
  • 着色器语言支持VS Code
  • GLSL字面

当我保存*.frag文件时,我得到:

GLSL Lint: config.glslangValidatorPath is empty, please set it to the executable

Shaderc Lint: config.glslcPath is empty, please set it to the executable

我读过我必须使用glslang设置GLSLValidator路径,但我不明白怎么做。

有人能帮我吗?

visual-studio-code glsl
1个回答
1
投票

VSCode插件GLSL lint没有着色器文件验证器,因此您必须自己下载并在VSCode中设置路径。

您可以为您的系统获取构建的二进制here。只需在系统上的某处下载并解压缩,然后在VSCode设置中设置路径:

  • 在Windows / Linux上 - “文件”>“首选项”>“设置”
  • 在macOS上 - 代码>首选项>设置

并添加行config.glslangValidatorPath: /your/path/to/glslangbinary

希望它有所帮助。

最好,菲利普

© www.soinside.com 2019 - 2024. All rights reserved.