KRDeviceManager::getDeviceInfo refactored to KRDeviceManager::getDevice, and now returns a unique_ptr.
Now freeing vertex and index buffers.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user