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

@@ -116,7 +116,8 @@ KRPipeline::KRPipeline(KRContext& context, KrDeviceHandle deviceHandle, VkFormat
m_pipelineLayout = nullptr;
m_graphicsPipeline = nullptr;
m_renderPass = nullptr;
KRDevice& device = m_pContext->getDeviceManager()->getDeviceInfo(deviceHandle);
KRDevice& device = *m_pContext->getDeviceManager()->getDevice(deviceHandle);
// TODO - Handle device removal
strcpy(m_szKey, szKey);