Shader: First working version on both Vulkan & OpenGL (ES)

This commit is contained in:
Jérôme Leclercq
2021-04-12 15:38:20 +02:00
parent f93a5bbdc1
commit ea99c6a19e
42 changed files with 1803 additions and 1053 deletions

View File

@@ -13,7 +13,12 @@ namespace Nz::ShaderAst
return m_expressionCategory;
}
void ShaderAstValueCategory::Visit(AccessMemberExpression& node)
void ShaderAstValueCategory::Visit(AccessMemberIdentifierExpression& node)
{
node.structExpr->Visit(*this);
}
void ShaderAstValueCategory::Visit(AccessMemberIndexExpression& node)
{
node.structExpr->Visit(*this);
}
@@ -66,4 +71,9 @@ namespace Nz::ShaderAst
{
node.expression->Visit(*this);
}
void ShaderAstValueCategory::Visit(VariableExpression& node)
{
m_expressionCategory = ExpressionCategory::LValue;
}
}