danielscherzer / GLSL

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

How can I compile my shader using the extension? #82

Closed mrjbom closed 3 years ago

mrjbom commented 3 years ago

Installed product versions

Description

How can I compile my shaders? I absolutely do not observe such a possibility. How should I get the extension to do this? In the extension settings, I specified the path to glslc.exe and the argument is "-c"

danielscherzer commented 3 years ago

This extention does not compile shaders into SPIRV or any binary format.

Shader compilation is used by the extension only internally to highlight syntax errors in your shader code. As a default a separate OpenGL thread that compiles the shader on the primary graphics card is used. You can also select an external compiler executable to use for this purpose in the options menu.

If I have understood you correctly you have specified an external compiler. Does the error tagging (error squiggles) work correctly when you do not specify an external compiler? You can see screenshots of the output of this extension in many of the github issues for instance #74.

mrjbom commented 3 years ago

I am facing such a problem: image

I have set the following settings: image

When I compile shaders, I don't get any errors or warnings. image

danielscherzer commented 3 years ago

Did you also try to use the External compiler executable file path field?

mrjbom commented 3 years ago

Oops, I didn't notice this field, I expected the arguments and the compiler path to be specified together. Thank you for your help!

danielscherzer commented 3 years ago

Thanks for clearing this up!