Fix issues with ui rendering

This commit is contained in:
2023-09-08 18:17:16 +02:00
parent 2bcea0d7fd
commit 703f5c0d12
12 changed files with 43 additions and 50 deletions

View File

@@ -7,6 +7,7 @@
#pragma once
#include "RenderPass.hpp"
#include "Base/UI/IWindow.hpp"
#include "Scene/UI/UI.hpp"
#include <vulkan/vulkan.hpp>
@@ -20,6 +21,7 @@ namespace openVulkanoCpp::Vulkan
RenderPass uiRenderPass;
vk::DescriptorPool descriptorPool;
Scene::UI::Ui* ui;
IWindow* window = nullptr;
bool uiInitialized = false;
public:
@@ -27,7 +29,7 @@ namespace openVulkanoCpp::Vulkan
UiRenderer(Context* context) { Init(context); }
~UiRenderer() { if (descriptorPool) Close(); }
~UiRenderer() { if (uiInitialized) Close(); }
void Init(Context* context);