MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / parseSyncStageEquivalent

Function parseSyncStageEquivalent

generator/VkXMLParser.cpp:2442–2460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2440}
2441
2442SyncStageEquivalent parseSyncStageEquivalent( tinyxml2::XMLElement const * element )
2443{
2444 int const line = element->GetLineNum();
2445 std::map<std::string, std::string> attributes = getAttributes( element );
2446 checkAttributes( "vk.xml", line, attributes, { { "stage", {} } }, {} );
2447 checkElements( "vk.xml", line, getChildElements( element ), {}, {} );
2448
2449 SyncStageEquivalent syncEquivalent{ .xmlLine = line };
2450 for ( auto const & attribute : attributes )
2451 {
2452 if ( attribute.first == "stage" )
2453 {
2454 syncEquivalent.stages = tokenize( attribute.second, "," );
2455 // CHECK: stages after extensions
2456 }
2457 }
2458
2459 return syncEquivalent;
2460}
2461
2462SyncStageSupport parseSyncStageSupport( tinyxml2::XMLElement const * element )
2463{

Callers 1

parseSyncStageFunction · 0.85

Calls 5

getAttributesFunction · 0.85
checkAttributesFunction · 0.85
checkElementsFunction · 0.85
getChildElementsFunction · 0.85
tokenizeFunction · 0.85

Tested by

no test coverage detected