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

Method checkStructMemberTypeIsRequired

generator/VulkanHppGenerator.cpp:1309–1320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307}
1308
1309void VulkanHppGenerator::checkStructMemberTypeIsRequired( std::string const & memberType, int line, std::string const & structureName ) const
1310{
1311 // check that the member type is required in some feature or extension
1312 if ( memberType.starts_with( "Vk" ) )
1313 {
1314 auto typeIt = m_types.find( memberType );
1315 assert( typeIt != m_types.end() );
1316 checkForError( !typeIt->second.requiredBy.empty(),
1317 line,
1318 "struct member type <" + memberType + "> used in struct <" + structureName + "> is never required for any feature or extension" );
1319 }
1320}
1321
1322void VulkanHppGenerator::checkStructMemberValueIsValid( std::string const & memberValue,
1323 std::string const & memberType,

Callers

nothing calls this directly

Calls 1

checkForErrorFunction · 0.85

Tested by

no test coverage detected