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

Method generateCppModuleCommands

generator/VulkanHppGenerator.cpp:4896–4914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4894}
4895
4896std::string VulkanHppGenerator::generateCppModuleCommands() const
4897{
4898 // generate PFN_* functions
4899 auto pfnCommands = std::string{ R"(
4900 //==================
4901 //=== PFN TYPEs ===
4902 //==================
4903)" };
4904 std::set<std::string> listedCommands; // some commands are listed with more than one extension!
4905 for ( auto const & feature : m_features )
4906 {
4907 appendCppModuleCommands( feature.requireData, listedCommands, feature.name, pfnCommands );
4908 }
4909 for ( auto const & extension : m_extensions )
4910 {
4911 appendCppModuleCommands( extension.requireData, listedCommands, extension.name, pfnCommands );
4912 }
4913 return pfnCommands;
4914}
4915
4916std::string VulkanHppGenerator::generateDataDeclarations( CommandData const & commandData,
4917 std::vector<size_t> const & returnParams,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected