mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Add check on <syncstage> <syncsupport> "queues" being specified with at least one command. (#1968)
Some checks are pending
Set Version Tag / set-version-tag (push) Waiting to run
Some checks are pending
Set Version Tag / set-version-tag (push) Waiting to run
This commit is contained in:
parent
b8e4e70adf
commit
00dac1bd21
@ -13340,7 +13340,7 @@ void VulkanHppGenerator::readCommand( tinyxml2::XMLElement const * element )
|
||||
{ "cmdbufferlevel", { "primary", "secondary" } },
|
||||
{ "comment", {} },
|
||||
{ "errorcodes", {} },
|
||||
{ "queues", { "compute", "decode", "encode", "graphics", "opticalflow", "sparse_binding", "transfer" } },
|
||||
{ "queues", {} },
|
||||
{ "renderpass", { "both", "inside", "outside" } },
|
||||
{ "successcodes", {} },
|
||||
{ "tasks", { "action", "indirection", "state", "synchronization" } },
|
||||
@ -13363,6 +13363,10 @@ void VulkanHppGenerator::readCommand( tinyxml2::XMLElement const * element )
|
||||
commandData.errorCodes = tokenize( attribute.second, "," );
|
||||
// errorCodes are checked in checkCorrectness after complete reading
|
||||
}
|
||||
else if ( attribute.first == "queues" )
|
||||
{
|
||||
m_commandQueues.insert( attribute.second );
|
||||
}
|
||||
else if ( attribute.first == "successcodes" )
|
||||
{
|
||||
commandData.successCodes = tokenize( attribute.second, "," );
|
||||
@ -15268,8 +15272,15 @@ void VulkanHppGenerator::readSyncStageEquivalent( tinyxml2::XMLElement const * e
|
||||
void VulkanHppGenerator::readSyncStageSupport( tinyxml2::XMLElement const * element )
|
||||
{
|
||||
const int line = element->GetLineNum();
|
||||
checkAttributes( line, getAttributes( element ), { { "queues", { "compute", "decode", "encode", "graphics", "opticalflow", "transfer" } } }, {} );
|
||||
std::map<std::string, std::string> attributes = getAttributes( element );
|
||||
checkAttributes( line, attributes, { { "queues", {} } }, {} );
|
||||
checkElements( line, getChildElements( element ), {}, {} );
|
||||
|
||||
for ( auto const & attribute : attributes )
|
||||
{
|
||||
assert( attribute.first == "queues" );
|
||||
checkForError( m_commandQueues.contains( attribute.second ), line, "syncsupport queues uses unknown value <" + attribute.second + ">" );
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanHppGenerator::readTag( tinyxml2::XMLElement const * element )
|
||||
|
@ -1102,8 +1102,7 @@ private:
|
||||
void readSPIRVExtensions( tinyxml2::XMLElement const * element );
|
||||
void readStructMember( tinyxml2::XMLElement const * element, std::vector<MemberData> & members, bool isUnion );
|
||||
void readSync( tinyxml2::XMLElement const * element );
|
||||
void readSyncAccess( tinyxml2::XMLElement const * element,
|
||||
std::map<std::string, EnumData>::const_iterator accessFlagBits2It );
|
||||
void readSyncAccess( tinyxml2::XMLElement const * element, std::map<std::string, EnumData>::const_iterator accessFlagBits2It );
|
||||
void readSyncAccessEquivalent( tinyxml2::XMLElement const * element, std::map<std::string, EnumData>::const_iterator accessFlagBits2It );
|
||||
void readSyncAccessSupport( tinyxml2::XMLElement const * element );
|
||||
void readSyncPipeline( tinyxml2::XMLElement const * element );
|
||||
@ -1151,6 +1150,7 @@ private:
|
||||
std::string m_api;
|
||||
std::map<std::string, BaseTypeData> m_baseTypes;
|
||||
std::map<std::string, BitmaskData> m_bitmasks;
|
||||
std::set<std::string> m_commandQueues;
|
||||
std::map<std::string, CommandData> m_commands;
|
||||
std::map<std::string, ConstantData> m_constants;
|
||||
std::map<std::string, DefineData> m_defines;
|
||||
|
Loading…
Reference in New Issue
Block a user