Shader: Rename ConstantExpression to ConstantValueExpression
This commit is contained in:
@@ -387,8 +387,8 @@ namespace Nz
|
||||
{
|
||||
ShaderAst::StructDescription* structDesc = Retrieve(m_currentState->structs, structIndex);
|
||||
|
||||
assert((*memberIndices)->GetType() == ShaderAst::NodeType::ConstantExpression);
|
||||
auto& constantValue = static_cast<ShaderAst::ConstantExpression&>(**memberIndices);
|
||||
assert((*memberIndices)->GetType() == ShaderAst::NodeType::ConstantValueExpression);
|
||||
auto& constantValue = static_cast<ShaderAst::ConstantValueExpression&>(**memberIndices);
|
||||
Int32 index = std::get<Int32>(constantValue.value);
|
||||
assert(index >= 0);
|
||||
|
||||
@@ -828,7 +828,7 @@ namespace Nz
|
||||
Append(")");
|
||||
}
|
||||
|
||||
void GlslWriter::Visit(ShaderAst::ConstantExpression& node)
|
||||
void GlslWriter::Visit(ShaderAst::ConstantValueExpression& node)
|
||||
{
|
||||
std::visit([&](auto&& arg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user