Shader: Attribute can now have expressions as values and struct fields can be conditionally supported
This commit is contained in:
@@ -67,6 +67,11 @@ namespace Nz::ShaderAst
|
||||
m_expressionCategory = ExpressionCategory::RValue;
|
||||
}
|
||||
|
||||
void ShaderAstValueCategory::Visit(ConstantIndexExpression& /*node*/)
|
||||
{
|
||||
m_expressionCategory = ExpressionCategory::LValue;
|
||||
}
|
||||
|
||||
void ShaderAstValueCategory::Visit(IdentifierExpression& /*node*/)
|
||||
{
|
||||
m_expressionCategory = ExpressionCategory::LValue;
|
||||
|
||||
Reference in New Issue
Block a user