Renderer/ShaderAst: Add ConditionalStatement

This commit is contained in:
Lynix
2017-01-21 15:53:18 +01:00
parent 205b8b1ba6
commit cb69b1ed01
5 changed files with 42 additions and 0 deletions

View File

@@ -53,6 +53,12 @@ namespace Nz
{
}
inline ConditionalStatement::ConditionalStatement(const String& condition, StatementPtr statementPtr) :
conditionName(condition),
statement(std::move(statementPtr))
{
}
template<typename... Args>
StatementBlock::StatementBlock(Args&& ...args) :
statements({std::forward<Args>(args)...})