Shader/ShaderLang: Add type inference for variable declaration
This commit is contained in:
@@ -70,6 +70,7 @@ namespace Nz::ShaderBuilder
|
||||
|
||||
struct DeclareVariable
|
||||
{
|
||||
inline std::unique_ptr<ShaderAst::DeclareVariableStatement> operator()(std::string name, ShaderAst::ExpressionPtr initialValue) const;
|
||||
inline std::unique_ptr<ShaderAst::DeclareVariableStatement> operator()(std::string name, ShaderAst::ExpressionType type, ShaderAst::ExpressionPtr initialValue = nullptr) const;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user