Maintains a list of issues for each stage of a shader collection.
Definition at line 20 of file VuoShaderIssues.hh.
Classes | |
struct | Issue |
A warning or error emitted when compiling a shader. More... | |
Public Member Functions | |
void | addIssue (VuoShaderFile::Stage stage, int lineNumber, std::string message) |
Adds an issue to the list of issues. More... | |
vector< Issue > & | issues () |
Returns the full list of issues. More... | |
vector< Issue > | issuesForStage (VuoShaderFile::Stage stage) |
Returns only the issues that apply to this shader stage. More... | |
void | dump () |
Logs the shader issues to the console. More... | |
Static Public Member Functions | |
static bool | isUserEnteredLine (int lineNumber) |
Returns true if the line number is known and is within the user-entered shader code (as opposed to the preamble). More... | |
Static Public Attributes | |
const static int | NoLine = INT_MAX |
If OpenGL didn't tell us which source line the issue applies to. More... | |
const static int | PreambleLine = 1000000000 |
The first line number to use for auto-generated code. More... | |
void VuoShaderIssues::addIssue | ( | VuoShaderFile::Stage | stage, |
int | lineNumber, | ||
std::string | message | ||
) |
Adds an issue to the list of issues.
Definition at line 22 of file VuoShaderIssues.cc.
void VuoShaderIssues::dump | ( | ) |
Logs the shader issues to the console.
Definition at line 79 of file VuoShaderIssues.cc.
vector< VuoShaderIssues::Issue > & VuoShaderIssues::issues | ( | ) |
Returns the full list of issues.
Definition at line 49 of file VuoShaderIssues.cc.
vector< VuoShaderIssues::Issue > VuoShaderIssues::issuesForStage | ( | VuoShaderFile::Stage | stage | ) |
Returns only the issues that apply to this shader stage.
Definition at line 57 of file VuoShaderIssues.cc.
|
static |
Returns true if the line number is known and is within the user-entered shader code (as opposed to the preamble).
Definition at line 70 of file VuoShaderIssues.cc.
|
static |
If OpenGL didn't tell us which source line the issue applies to.
Definition at line 33 of file VuoShaderIssues.hh.
|
static |
The first line number to use for auto-generated code.
Definition at line 34 of file VuoShaderIssues.hh.