We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following shader does not compile, despite the included file existing:
#include "C:\users\Admin\Desktop\file.glsl" void main(){}
This is because quoted includes get passed to readLocalPath, which assumes the path is local and transforms it before trying to read it:
readLocalPath
glslang/StandAlone/DirStackFileIncluder.h
Lines 103 to 124 in 1cad045
I fixed this in my copy by changing readLocalPath to check headerName as-is, in case it's an absolute path, before transforming it as a local path:
headerName
virtual IncludeResult* readLocalPath(const char* headerName, const char* includerName, int depth) { // first check for absolute paths: std::ifstream file(headerName, std::ios_base::binary | std::ios_base::ate); if (file) { directoryStack.push_back(getDirectory(headerName)); includedFiles.insert(headerName); return newIncludeResult(headerName, file, (int)file.tellg()); } // Discard popped include directories, and // ... ```
The text was updated successfully, but these errors were encountered:
First implementation of RVESC
0e4baba
~ fix bug in glslang surrounding handling of absolute paths in #include statements: KhronosGroup/glslang#3611
No branches or pull requests
The following shader does not compile, despite the included file existing:
This is because quoted includes get passed to
readLocalPath
, which assumes the path is local and transforms it before trying to read it:glslang/StandAlone/DirStackFileIncluder.h
Lines 103 to 124 in 1cad045
I fixed this in my copy by changing
readLocalPath
to checkheaderName
as-is, in case it's an absolute path, before transforming it as a local path:The text was updated successfully, but these errors were encountered: