| 11350 | } |
| 11351 | |
| 11352 | std::string VulkanHppGenerator::generateStructForwardDeclarations() const |
| 11353 | { |
| 11354 | std::string const fowardDeclarationsTemplate = R"( |
| 11355 | //=================================== |
| 11356 | //=== STRUCT forward declarations === |
| 11357 | //=================================== |
| 11358 | |
| 11359 | ${forwardDeclarations} |
| 11360 | )"; |
| 11361 | |
| 11362 | std::string forwardDeclarations; |
| 11363 | std::set<std::string> listedStructs; |
| 11364 | for ( auto const & feature : m_features ) |
| 11365 | { |
| 11366 | forwardDeclarations += generateStructForwardDeclarations( feature.requireData, feature.name, listedStructs ); |
| 11367 | } |
| 11368 | for ( auto const & extension : m_extensions ) |
| 11369 | { |
| 11370 | forwardDeclarations += generateStructForwardDeclarations( extension.requireData, extension.name, listedStructs ); |
| 11371 | } |
| 11372 | |
| 11373 | return replaceWithMap( fowardDeclarationsTemplate, { { "forwardDeclarations", forwardDeclarations } } ); |
| 11374 | } |
| 11375 | |
| 11376 | std::string VulkanHppGenerator::generateStructForwardDeclarations( std::vector<RequireData> const & requireData, |
| 11377 | std::string const & title, |
nothing calls this directly
no test coverage detected