| 1307 | } |
| 1308 | |
| 1309 | void 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 | |
| 1322 | void VulkanHppGenerator::checkStructMemberValueIsValid( std::string const & memberValue, |
| 1323 | std::string const & memberType, |
nothing calls this directly
no test coverage detected