Fix ordering determination of structs. (#1807)

This commit is contained in:
Andreas Süßenbach 2024-02-19 12:35:54 +01:00 committed by GitHub
parent f1a38ff729
commit 38e3e8f800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1701,10 +1701,21 @@ bool VulkanHppGenerator::containsFloatingPoints( std::vector<MemberData> const &
{
for ( auto const & m : members )
{
if ( ( ( m.type.type == "float" ) || ( m.type.type == "double" ) ) && m.type.isValue() )
if (m.type.isValue())
{
if ( ( m.type.type == "float" ) || ( m.type.type == "double" ) )
{
return true;
}
else
{
auto structureIt = m_structs.find( m.type.type );
if (structureIt != m_structs.end() && containsFloatingPoints(structureIt->second.members))
{
return true;
}
}
}
}
return false;
}