chore: detect structs that differ on different architectures

* and exclude them from assetstructtests
This commit is contained in:
Jan Laupetin
2025-04-27 21:04:41 +02:00
parent 088d14f894
commit 4e9599aabf
7 changed files with 85 additions and 2 deletions

View File

@ -37,11 +37,13 @@ namespace
LINE("{")
m_intendation++;
TestMethod(m_env.m_asset);
if (m_env.m_asset->m_has_matching_cross_platform_structure)
TestMethod(m_env.m_asset);
for (auto* structure : m_env.m_used_structures)
{
StructureComputations computations(structure->m_info);
if (!structure->m_info->m_definition->m_anonymous && !computations.IsAsset())
if (!structure->m_info->m_definition->m_anonymous && !computations.IsAsset() && structure->m_info->m_has_matching_cross_platform_structure)
TestMethod(structure->m_info);
}