Renderer/ShaderBuilder: Fix compilation error when including ShaderBuilder.hpp

This commit is contained in:
Lynix 2017-10-30 22:30:04 +01:00
parent d688cecbde
commit 8dab3bf341
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ namespace Nz { namespace ShaderBuilder
{
constexpr BuiltinBuilder() {}
std::shared_ptr<ShaderAst::Variable> operator()(ShaderAst::BuiltinEntry builtin) const;
inline std::shared_ptr<ShaderAst::Variable> operator()(ShaderAst::BuiltinEntry builtin) const;
};
template<typename T>

View File

@ -26,7 +26,7 @@ namespace Nz { namespace ShaderBuilder
return std::make_shared<ShaderAst::BinaryOp>(op, left, right);
}
std::shared_ptr<ShaderAst::Variable> BuiltinBuilder::operator()(ShaderAst::BuiltinEntry builtin) const
inline std::shared_ptr<ShaderAst::Variable> BuiltinBuilder::operator()(ShaderAst::BuiltinEntry builtin) const
{
ShaderAst::ExpressionType exprType = ShaderAst::ExpressionType::Void;