Skip to content

Commit

Permalink
Fix ordering determination of structs. (#1807) (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
asuessenbach authored Feb 19, 2024
1 parent 8ba3c07 commit b64a08a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions VulkanHppGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1701,9 +1701,20 @@ 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())
{
return true;
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;
Expand Down

0 comments on commit b64a08a

Please sign in to comment.