Removed an invalid error check on structs. (#1828)

This commit is contained in:
Andreas Süßenbach 2024-03-18 12:11:31 +01:00 committed by GitHub
parent 695de1bc3a
commit 19f90f043f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14299,9 +14299,6 @@ void VulkanHppGenerator::readStructMember( tinyxml2::XMLElement const * element,
{ {
auto lenMemberIt = findStructMemberIt( memberData.lenExpressions[0], members ); auto lenMemberIt = findStructMemberIt( memberData.lenExpressions[0], members );
checkForError( lenMemberIt != members.end(), line, "member attribute <len> holds unknown value <" + memberData.lenExpressions[0] + ">" ); checkForError( lenMemberIt != members.end(), line, "member attribute <len> holds unknown value <" + memberData.lenExpressions[0] + ">" );
checkForError( lenMemberIt->type.prefix.empty(),
line,
"member attribute <len> references a member of unexpected type <" + lenMemberIt->type.compose( "VULKAN_HPP_NAMESPACE" ) + ">" );
memberData.lenMembers.push_back( { memberData.lenExpressions[0], std::distance( members.cbegin(), lenMemberIt ) } ); memberData.lenMembers.push_back( { memberData.lenExpressions[0], std::distance( members.cbegin(), lenMemberIt ) } );
} }
if ( 1 < memberData.lenExpressions.size() ) if ( 1 < memberData.lenExpressions.size() )