Vuo  2.0.2
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
VuoShaderIssues Class Reference

Description

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< IssueissuesForStage (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...
 

Class Documentation

◆ VuoShaderIssues::Issue

struct VuoShaderIssues::Issue
Class Members
int lineNumber
string message
Stage stage

Member Function Documentation

◆ addIssue()

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.

◆ dump()

void VuoShaderIssues::dump ( )

Logs the shader issues to the console.

Definition at line 79 of file VuoShaderIssues.cc.

◆ issues()

vector< VuoShaderIssues::Issue > & VuoShaderIssues::issues ( )

Returns the full list of issues.

Definition at line 49 of file VuoShaderIssues.cc.

◆ issuesForStage()

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.

◆ isUserEnteredLine()

bool VuoShaderIssues::isUserEnteredLine ( int  lineNumber)
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.

Member Data Documentation

◆ NoLine

const int VuoShaderIssues::NoLine = INT_MAX
static

If OpenGL didn't tell us which source line the issue applies to.

Definition at line 33 of file VuoShaderIssues.hh.

◆ PreambleLine

const int VuoShaderIssues::PreambleLine = 1000000000
static

The first line number to use for auto-generated code.

Definition at line 34 of file VuoShaderIssues.hh.


The documentation for this class was generated from the following files: