Add Image rendering support for ImGui

- Fix alpha channel bug being set to 0
This commit is contained in:
Thraix
2023-07-13 21:17:42 +02:00
parent cb120ef731
commit f9fb74ba6a
7 changed files with 83 additions and 34 deletions
@@ -4,6 +4,7 @@
#include "copium/buffer/CommandBuffer.h"
#include "copium/pipeline/DescriptorPool.h"
#include "copium/pipeline/DescriptorSet.h"
namespace Copium
{
@@ -13,6 +14,8 @@ namespace Copium
private:
std::unique_ptr<DescriptorPool> descriptorPool;
VkDescriptorSetLayout descriptorSetLayout;
std::set<ShaderBinding> shaderBindings;
public:
ImGuiInstance();
@@ -22,7 +25,12 @@ namespace Copium
void End();
void Render(CommandBuffer& commandBuffer);
std::unique_ptr<DescriptorSet> CreateDescriptorSet();
private:
void InitializeImGui();
void InitializeDescriptorSetLayout();
static void CheckVkResult(VkResult err);
};
}