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