MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / generateStructExtendsStructs

Method generateStructExtendsStructs

generator/VulkanHppGenerator.cpp:11293–11314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11291}
11292
11293std::string VulkanHppGenerator::generateStructExtendsStructs() const
11294{
11295 std::string const structExtendsTemplate = R"(
11296 //=======================
11297 //=== STRUCTS EXTENDS ===
11298 //=======================
11299
11300${structExtends})";
11301
11302 std::string structExtends;
11303 std::set<std::string> listedStructs;
11304 for ( auto const & feature : m_features )
11305 {
11306 structExtends += generateStructExtendsStructs( feature.requireData, listedStructs, feature.name );
11307 }
11308 for ( auto const & extension : m_extensions )
11309 {
11310 structExtends += generateStructExtendsStructs( extension.requireData, listedStructs, extension.name );
11311 }
11312
11313 return replaceWithMap( structExtendsTemplate, { { "structExtends", structExtends } } );
11314}
11315
11316std::string VulkanHppGenerator::generateStructExtendsStructs( std::vector<RequireData> const & requireData,
11317 std::set<std::string> & listedStructs,

Callers

nothing calls this directly

Calls 3

replaceWithMapFunction · 0.85
findByNameOrAliasFunction · 0.85
stripPrefixFunction · 0.85

Tested by

no test coverage detected