[WIP] Refactor creation of descriptorsets

This commit is contained in:
2023-08-30 23:11:11 +02:00
parent 5aec41ead4
commit 93c75763c7
19 changed files with 201 additions and 173 deletions

View File

@@ -18,7 +18,14 @@ namespace openVulkanoCpp::Vulkan
vkShader = renderer->GetResourceManager().CreateShader(shader);
}
else if (m_lastShader == vkShader) return; // Skip it if shader is already bound
vkShader->Record(commandBuffer, currentImageId);
vkShader->Record(this);
m_lastShader = vkShader;
}
void VulkanDrawContext::EncodeShader(VulkanShader* vkShader)
{
if (m_lastShader == vkShader) return; // Skip it if shader is already bound
vkShader->Record(this);
m_lastShader = vkShader;
}
}