Merge pull request #1156 from asuessenbach/check

Enable check on planeIndex in format components
This commit is contained in:
Andreas Süßenbach 2021-12-02 16:21:41 +01:00 committed by GitHub
commit bc7a5b56b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13872,10 +13872,10 @@ void VulkanHppGenerator::readFormatsFormat( tinyxml2::XMLElement const * element
{
check( !componentIt->planeIndex.empty(), line, "component is expected to have a planeIndex" );
}
// size_t planeCount = 1 + std::stoi( it->second.components.back().planeIndex );
// check( it->second.planes.size() == planeCount,
// line,
// "number of planes does not fit to largest planeIndex of the components" );
size_t planeCount = 1 + std::stoi( it->second.components.back().planeIndex );
check( it->second.planes.size() == planeCount,
line,
"number of planes does not fit to largest planeIndex of the components" );
}
}