Vulkan: Allow Device Objects to be move-constructed
Former-commit-id: 3f0d936867d1830478c5a23c3076f532ea26dc94
This commit is contained in:
@@ -17,6 +17,15 @@ namespace Nz
|
||||
{
|
||||
}
|
||||
|
||||
inline Surface::Surface(Surface&& surface) :
|
||||
m_instance(surface.m_instance),
|
||||
m_allocator(surface.m_allocator),
|
||||
m_surface(surface.m_surface),
|
||||
m_lastErrorCode(surface.m_lastErrorCode)
|
||||
{
|
||||
surface.m_surface = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
inline Surface::~Surface()
|
||||
{
|
||||
Destroy();
|
||||
|
||||
Reference in New Issue
Block a user