| 2440 | } |
| 2441 | |
| 2442 | SyncStageEquivalent 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 | |
| 2462 | SyncStageSupport parseSyncStageSupport( tinyxml2::XMLElement const * element ) |
| 2463 | { |
no test coverage detected