Validate shaders compilation on the GPU and output IDE-compliant error messages.
|
bool | processLog (const std::string &compilationLog, const std::vector< std::string > &filePaths) |
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Perform shader validation: load all shaders in the resources directory, compile them on the GPU and output error logs.
- Parameters
-
argc | the number of input arguments. |
argv | a pointer to the raw input arguments. |
- Returns
- a boolean denoting if at least one shader failed to compile.
◆ processLog()
bool processLog |
( |
const std::string & |
compilationLog, |
|
|
const std::vector< std::string > & |
filePaths |
|
) |
| |
Convert a shader compilation log into a IDE-compatible error reporting format and output it to stderr.
- Parameters
-
compilationLog | the compilation log to process. |
filePaths | the paths to the shader file and all include files, absolute or relative to the directory containing the IDE project. |
- Returns
- a boolean denoting if at least one error was reported by the log.
- Warning
- If filePath is not expressed absolute or relative to the directory containing the IDE project, error links (for instance "src/foo/bar.frag:18") won't be functional.