我开始阅读着色器的书,我想在 VsCode 中开发一些东西。
我安装了这些扩展:
当我保存*.frag文件时,我得到:
GLSL Lint: config.glslangValidatorPath is empty, please set it to the executable
Run Code Online (Sandbox Code Playgroud)
和
Shaderc Lint: config.glslcPath is empty, please set it to the executable
Run Code Online (Sandbox Code Playgroud)
我读到我必须使用glslang设置 GLSLValidator 路径,但我不明白如何。
有人能帮我吗?
小智 10
VSCode 插件GLSL lint不附带着色器文件验证器,因此您必须自己下载并在 VSCode 中设置路径。
您可以在此处为您的系统获取构建的二进制文件。只需将其下载并解压缩到系统上的某个位置,然后在 VSCode 设置中设置路径:
并将该行添加
config.glslangValidatorPath: /your/path/to/glslangbinary到其中。
希望它有帮助。
最好的,菲利普
小智 6
按Ctrl+P,输入“settings.json”并回车,然后添加
"glsllint.glslangValidatorPath": "C:\\Path\\Goes\\Here\\glslangValidator.exe"
并保存。
这对我有用(使用 Windows 10 x64 和 VS Code 1.52.1)。
| 归档时间: |
|
| 查看次数: |
3890 次 |
| 最近记录: |