Modules are workings \o/
This commit is contained in:
@@ -342,6 +342,14 @@ namespace Nz::ShaderAst
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool Compare(const FunctionExpression& lhs, const FunctionExpression& rhs)
|
||||
{
|
||||
if (!Compare(lhs.funcId, rhs.funcId))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool Compare(const IdentifierExpression& lhs, const IdentifierExpression& rhs)
|
||||
{
|
||||
if (!Compare(lhs.identifier, rhs.identifier))
|
||||
@@ -361,6 +369,22 @@ namespace Nz::ShaderAst
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool Compare(const IntrinsicFunctionExpression& lhs, const IntrinsicFunctionExpression& rhs)
|
||||
{
|
||||
if (!Compare(lhs.intrinsicId, rhs.intrinsicId))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool Compare(const StructTypeExpression& lhs, const StructTypeExpression& rhs)
|
||||
{
|
||||
if (!Compare(lhs.structTypeId, rhs.structTypeId))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool Compare(const SwizzleExpression& lhs, const SwizzleExpression& rhs)
|
||||
{
|
||||
if (!Compare(lhs.componentCount, rhs.componentCount))
|
||||
|
||||
Reference in New Issue
Block a user