KRDeviceManager::getDeviceInfo refactored to KRDeviceManager::getDevice, and now returns a unique_ptr.

Now freeing vertex and index buffers.
This commit is contained in:
2022-01-22 01:32:32 -08:00
parent ad596a82f9
commit 100ab0d3de
6 changed files with 68 additions and 65 deletions

View File

@@ -189,9 +189,9 @@ void KRDeviceManager::createDevices()
}
}
KRDevice& KRDeviceManager::getDeviceInfo(KrDeviceHandle handle)
std::unique_ptr<KRDevice>& KRDeviceManager::getDevice(KrDeviceHandle handle)
{
return *m_devices[handle];
return m_devices[handle];
}
VkInstance& KRDeviceManager::getVulkanInstance()