Shader/AstCompare: Fix missing ConditionalStatement compare
This commit is contained in:
parent
84db6981bc
commit
acf1b30355
|
|
@ -358,6 +358,17 @@ namespace Nz::ShaderAst
|
|||
return true;
|
||||
}
|
||||
|
||||
inline bool Compare(const ConditionalStatement& lhs, const ConditionalStatement& rhs)
|
||||
{
|
||||
if (!Compare(lhs.condition, rhs.condition))
|
||||
return false;
|
||||
|
||||
if (!Compare(lhs.statement, rhs.statement))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool Compare(const DeclareConstStatement& lhs, const DeclareConstStatement& rhs)
|
||||
{
|
||||
if (!Compare(lhs.name, rhs.name))
|
||||
|
|
|
|||
Loading…
Reference in New Issue