fixing put pixel, adding scene change checker

This commit is contained in:
Kbz-8
2024-10-21 01:48:01 +02:00
parent 59455495b6
commit c7484b771f
28 changed files with 302 additions and 201 deletions

View File

@@ -47,6 +47,8 @@ namespace mlx
RenderCore::RenderCore()
{
if(s_instance != nullptr)
return;
s_instance = this;
loader = std::make_unique<VulkanLoader>();
@@ -193,7 +195,10 @@ namespace mlx
RenderCore::~RenderCore()
{
if(s_instance == nullptr)
return;
WaitDeviceIdle();
m_descriptor_pool_manager.Destroy();
m_allocator.Destroy();
kvfDestroyDevice(m_device);
DebugLog("Vulkan : logical device destroyed");