mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Fix ordering determination of structs. (#1807)
This commit is contained in:
parent
f1a38ff729
commit
38e3e8f800
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user