danielscherzer / GLSL

VSIX Project that provides GLSL language integration.
258 stars 28 forks source link

Feature request: turn off errors and warnings? #115

Closed rxght closed 1 year ago

rxght commented 1 year ago

Installed product versions

Description

Maybe it's possible to add an option to turn off errors and warnings. I'm getting an error when using Vulkan-specific global variables. I'm being told to use #extension GL_KHR_vulkan_glsl : enable but when I add it to the file I get a warning from my compiler instead. Preferable would be to just turn off errors and warnings as I'm only after the syntax highlighting anyways.

pernicius commented 1 year ago

if you only use the highlighting (like me), add the following to your shader:

//! #extension GL_KHR_vulkan_glsl : enable

it will be ignored by glslc

danielscherzer commented 1 year ago

Hi, thanks for using my extension. This option exists (live compiling on/off) in Tools -> Options -> glsl For Vulkan people use the external compiler glslang (see readme on github)