Shader/ShaderAst: Rename AccessMember* to Access*

This commit is contained in:
Jérôme Leclercq
2021-06-01 12:38:17 +02:00
parent ce5ace52cc
commit 0f3c0abb96
26 changed files with 66 additions and 66 deletions

View File

@@ -650,11 +650,11 @@ namespace Nz
Append(")");
}
void GlslWriter::Visit(ShaderAst::AccessMemberIndexExpression& node)
void GlslWriter::Visit(ShaderAst::AccessIndexExpression& node)
{
Visit(node.structExpr, true);
Visit(node.expr, true);
const ShaderAst::ExpressionType& exprType = GetExpressionType(*node.structExpr);
const ShaderAst::ExpressionType& exprType = GetExpressionType(*node.expr);
assert(IsStructType(exprType));
AppendField(std::get<ShaderAst::StructType>(exprType).structIndex, node.memberIndices.data(), node.memberIndices.size());