Move check on known enum alias value from readEnum to final checkCorrectness.

This commit is contained in:
asuessenbach
2021-05-04 17:08:24 +02:00
parent 0afb197f75
commit e370ab5178
2 changed files with 76 additions and 78 deletions

View File

@@ -128,6 +128,17 @@ private:
int xmlLine;
};
struct EnumAliasData
{
EnumAliasData( std::string const & vulkanValue_, std::string const & vkValue_, int line )
: vulkanValue( vulkanValue_ ), vkValue( vkValue_ ), xmlLine( line )
{}
std::string vulkanValue;
std::string vkValue;
int xmlLine;
};
struct EnumValueData
{
EnumValueData(
@@ -155,11 +166,11 @@ private:
std::string const & extension,
std::string const & tag );
std::string alias; // alias for this enum
std::map<std::string, std::pair<std::string, std::string>> aliases; // map from name to alias and vk-name
bool isBitmask = false;
std::vector<EnumValueData> values;
int xmlLine;
std::string alias; // alias for this enum
std::map<std::string, EnumAliasData> aliases;
bool isBitmask = false;
std::vector<EnumValueData> values;
int xmlLine;
};
struct FeatureData