Shader/AstCompare: Fix missing ConditionalStatement compare
This commit is contained in:
@@ -358,6 +358,17 @@ namespace Nz::ShaderAst
|
|||||||
return true;
|
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)
|
inline bool Compare(const DeclareConstStatement& lhs, const DeclareConstStatement& rhs)
|
||||||
{
|
{
|
||||||
if (!Compare(lhs.name, rhs.name))
|
if (!Compare(lhs.name, rhs.name))
|
||||||
|
|||||||
Reference in New Issue
Block a user