#include "ShProgram.hpp"
Include dependency graph for ShSyntax.hpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | SH |
Shader definitions | |
#define | SH_BEGIN_SHADER(kind) |
Begin a new shader of the given kind. | |
#define | SH_END_SHADER |
End the current shader definition. | |
If statements | |
#define | SH_IF(cond) |
Begin an if statement. | |
#define | SH_ELSE |
Indicate the start of the else-block of an if statement. | |
#define | SH_ENDIF |
Indicate the end of an if-statement. | |
While loops | |
#define | SH_WHILE(cond) |
Begin a while statement, iterating as long as cond is satisfied. | |
#define | SH_ENDWHILE |
Indicate the end of a while-statement. | |
Do-until loops | |
#define | SH_DO |
Indicate the start of a do-until statement. | |
#define | SH_UNTIL(cond) |
End a do-until statement, iterating as long as cond is satisfied. | |
For loops | |
#define | SH_FOR(init, cond, update) |
Begin a for statement. | |
#define | SH_ENDFOR |
Indicate the end of a for statement. | |
Loop flow control | |
#define | SH_BREAK |
Break out of a loop, terminating the loop. | |
#define | SH_CONTINUE |
Break out of a loop, continuing with the next iteration. |
Definition in file ShSyntax.hpp.
|
Begin a new shader of the given kind. Nesting shaders is not allowed.
Definition at line 77 of file ShSyntax.hpp. |
|
Break out of a loop, terminating the loop.
Definition at line 167 of file ShSyntax.hpp. |
|
Break out of a loop, continuing with the next iteration.
Definition at line 175 of file ShSyntax.hpp. |
|
Indicate the start of a do-until statement.
Definition at line 130 of file ShSyntax.hpp. |
|
Indicate the start of the else-block of an if statement.
Definition at line 101 of file ShSyntax.hpp. |
|
End the current shader definition.
Definition at line 82 of file ShSyntax.hpp. |
|
Indicate the end of a for statement.
Definition at line 155 of file ShSyntax.hpp. |
|
Indicate the end of an if-statement.
Definition at line 107 of file ShSyntax.hpp. |
|
Indicate the end of a while-statement.
Definition at line 121 of file ShSyntax.hpp. |
|
Begin a for statement. The semantics are mostly the same as for C++ for statements, but unlike in C++ declaring variables in init part is not allowed.
Definition at line 147 of file ShSyntax.hpp. |
|
Begin an if statement.
Definition at line 95 of file ShSyntax.hpp. |
|
End a do-until statement, iterating as long as cond is satisfied.
Definition at line 135 of file ShSyntax.hpp. |
|
Begin a while statement, iterating as long as cond is satisfied.
Definition at line 116 of file ShSyntax.hpp. |