danielscherzer / GLSL

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

Make ExpandIncludes optional #93

Closed LDeakin closed 2 years ago

LDeakin commented 2 years ago

GetIncludeCode currently invalidates the shader source if an include is not found (see here). This pull request adds an option to disable the expansion of includes so that the shader compiler can resolve includes itself.

Example options Expand includes: false External shader compiler: %VULKAN_SDK%\Bin\glslc.exe Shader compiler arguments: -I "/path/to/shader/includes"

danielscherzer commented 2 years ago

Thanks for your contribution! The feature is included in version 0.11.154