Slight cleanup of VulkanDrawContext and binding the node

This commit is contained in:
Georg Hagen
2024-06-05 21:26:46 +02:00
parent 58e63b6610
commit 9f05b3e3a2
5 changed files with 14 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ namespace OpenVulkano::Vulkan
}
}
void ResourceManager::PrepareNode(Scene::Node* node)
VulkanNode* ResourceManager::PrepareNode(Scene::Node* node)
{
const std::unique_lock lock(mutex);
if (!node->renderNode)
@@ -181,6 +181,7 @@ namespace OpenVulkano::Vulkan
vkNode->Init(node, uBuffer);
node->renderNode = vkNode;
}
return static_cast<VulkanNode*>(node->renderNode);
}
VulkanCamera* ResourceManager::PrepareCamera(Scene::Camera* camera)