Introduce constructor and assignment operator on nullptr_t (#77)
Fix issue #77
This commit is contained in:
committed by
Markus Tavenrath
parent
43b2c5ef66
commit
f0eff17d9b
@@ -3338,6 +3338,10 @@ void writeTypeHandle(std::ofstream & ofs, VkData const& vkData, DependencyData c
|
||||
<< " : m_" << memberName << "(VK_NULL_HANDLE)" << std::endl
|
||||
<< " {}" << std::endl
|
||||
<< std::endl
|
||||
<< " " << dependencyData.name << "( nullptr_t )" << std::endl
|
||||
<< " : m_" << memberName << "(VK_NULL_HANDLE)" << std::endl
|
||||
<< " {}" << std::endl
|
||||
<< std::endl
|
||||
<< "#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)" << std::endl
|
||||
// construct from native handle
|
||||
<< " " << dependencyData.name << "(Vk" << dependencyData.name << " " << memberName << ")" << std::endl
|
||||
@@ -3352,6 +3356,13 @@ void writeTypeHandle(std::ofstream & ofs, VkData const& vkData, DependencyData c
|
||||
<< " }" << std::endl
|
||||
<< "#endif\n"
|
||||
<< std::endl
|
||||
// assignment from nullptr_t
|
||||
<< " " << dependencyData.name << "& operator=( nullptr_t )" << std::endl
|
||||
<< " {" << std::endl
|
||||
<< " m_" << memberName << " = VK_NULL_HANDLE;" << std::endl
|
||||
<< " return *this;" << std::endl
|
||||
<< " }" << std::endl
|
||||
<< std::endl
|
||||
// operator==
|
||||
<< " bool operator==" << "(" << dependencyData.name << " const &rhs) const" << std::endl
|
||||
<< " {" << std::endl
|
||||
|
||||
Reference in New Issue
Block a user