hsimpson / vscode-glsllint

VSCode extension to lint GLSL shading language files
MIT License
80 stars 13 forks source link

Shows error when using GL_EXT_ray_tracing, code works fine. #60

Closed ThomasConrad closed 1 year ago

ThomasConrad commented 1 year ago

Hi, I am new to glsllint. I am running the NVPRO KHR ray tracing samples, and when loading the GL_EXT_ray_tracing extension i get a linting error that it's not supported for the targeted spir-V version. I believe this might be due to glslc running with the default vulkan=1.0 instead of the newer 1.2, but I do not know how to change this. Here is the concrete shader I am having issues with: https://github.com/nvpro-samples/vk_raytracing_tutorial_KHR/blob/master/ray_tracing__simple/shaders/raytrace.rmiss.

hsimpson commented 1 year ago

I will check this...

hsimpson commented 1 year ago

If you configure "glsllint.glslangValidatorArgs": "--target-env vulkan1.2" then it will lint the VK Raytracing shaders correctly. If you running glslangValidator --help it will show you all options