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

Function parseVideoFormatProperties

generator/VkXMLParser.cpp:3164–3181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3162}
3163
3164VideoFormatProperties parseVideoFormatProperties( tinyxml2::XMLElement const * element )
3165{
3166 int const line = element->GetLineNum();
3167 std::map<std::string, std::string> attributes = getAttributes( element );
3168 checkAttributes( "vk.xml", line, attributes, { { "struct", {} } }, {} );
3169 checkElements( "vk.xml", line, getChildElements( element ), {}, {} );
3170
3171 VideoFormatProperties videoFormatProperties{ .xmlLine = line };
3172 for ( auto const & attribute : attributes )
3173 {
3174 if ( attribute.first == "struct" )
3175 {
3176 checkNoList( attribute.second, line );
3177 videoFormatProperties.structure = attribute.second;
3178 }
3179 }
3180 return videoFormatProperties;
3181}
3182
3183VideoProfile parseVideoProfile( tinyxml2::XMLElement const * element )
3184{

Callers 1

parseVideoFormatFunction · 0.85

Calls 5

getAttributesFunction · 0.85
checkAttributesFunction · 0.85
checkElementsFunction · 0.85
getChildElementsFunction · 0.85
checkNoListFunction · 0.85

Tested by

no test coverage detected