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

Method generateFunctionPointerCheck

generator/VulkanHppGenerator.cpp:6969–6983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6967}
6968
6969std::string VulkanHppGenerator::generateFunctionPointerCheck( std::string const & function, std::set<std::string> const & requiredBy, bool raii ) const
6970{
6971 std::string functionPointerCheck;
6972 if ( !requiredBy.empty() )
6973 {
6974 std::string message = "Function <" + function + "> requires <" + *requiredBy.begin() + ">";
6975 for ( auto it = std::next( requiredBy.begin() ); it != requiredBy.end(); ++it )
6976 {
6977 message += " or <" + *it + ">";
6978 }
6979
6980 functionPointerCheck = std::string( "VULKAN_HPP_ASSERT( " ) + ( raii ? "getDispatcher()->" : "d." ) + function + " && \"" + message + "\" );";
6981 }
6982 return functionPointerCheck;
6983}
6984
6985std::string VulkanHppGenerator::generateHandle( std::pair<std::string, HandleData> const & handleData, std::set<std::string> & listedHandles ) const
6986{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected