ShaderGraph: Improve GLSL generation by introducing DeclareVariable statement
This commit is contained in:
@@ -82,6 +82,12 @@ namespace Nz
|
||||
{
|
||||
}
|
||||
|
||||
inline DeclareVariable::DeclareVariable(NamedVariablePtr Variable, ExpressionPtr Expression) :
|
||||
expression(std::move(Expression)),
|
||||
variable(std::move(Variable))
|
||||
{
|
||||
}
|
||||
|
||||
inline AssignOp::AssignOp(AssignType Op, ExpressionPtr Left, ExpressionPtr Right) :
|
||||
op(Op),
|
||||
left(std::move(Left)),
|
||||
|
||||
Reference in New Issue
Block a user