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

Function parseSyncAccessSupport

generator/VkXMLParser.cpp:2314–2332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2312}
2313
2314SyncAccessSupport parseSyncAccessSupport( tinyxml2::XMLElement const * element )
2315{
2316 int const line = element->GetLineNum();
2317 std::map<std::string, std::string> attributes = getAttributes( element );
2318 checkAttributes( "vk.xml", line, attributes, { { "stage", {} } }, {} );
2319 checkElements( "vk.xml", line, getChildElements( element ), {}, {} );
2320
2321 SyncAccessSupport syncSupport{ .xmlLine = line };
2322 for ( auto const & attribute : attributes )
2323 {
2324 if ( attribute.first == "stage" )
2325 {
2326 syncSupport.stages = tokenize( attribute.second, "," );
2327 // CHECK: stages after extensions
2328 }
2329 }
2330
2331 return syncSupport;
2332}
2333
2334SyncPipeline parseSyncPipeline( tinyxml2::XMLElement const * element )
2335{

Callers 1

parseSyncAccessFunction · 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