From e9b463000e3ad3442c922203eafbff9111eb4183 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Thu, 2 Dec 2021 12:27:34 +0100 Subject: [PATCH] Enable check on planeIndex in format components --- VulkanHppGenerator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 9cbd57a..c300417 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -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" ); } }