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

@@ -21,8 +21,7 @@ namespace OpenVulkano::Vulkan
renderGeo->RecordBind(drawContext->commandBuffer);
for(Node* node : instance->GetNodes())
{
if (!node->renderNode) drawContext->renderer->GetResourceManager().PrepareNode(node);
static_cast<VulkanNode*>(node->renderNode)->Record(drawContext);
drawContext->EncodeNode(node);
renderGeo->RecordDraw(drawContext->commandBuffer);
}
}