ImGUI is now working in the program.
This commit is contained in:
parent
fe79797313
commit
14f307b1b3
5 changed files with 190 additions and 7 deletions
|
|
@ -36,6 +36,9 @@ constexpr unsigned int FRAME_OVERLAP=2;
|
|||
|
||||
class VulkanEngine {
|
||||
public:
|
||||
VkFence _immFence;
|
||||
VkCommandBuffer _immCommandBuffer;
|
||||
VkCommandPool _immCommandPool;
|
||||
VkPipeline _gradientPipeline;
|
||||
VkPipelineLayout _gradientPipelineLayout;
|
||||
|
||||
|
|
@ -96,6 +99,8 @@ public:
|
|||
//run main loop
|
||||
void run();
|
||||
|
||||
void immediate_submit(std::function<void(VkCommandBuffer cmd)>&& function);
|
||||
|
||||
private:
|
||||
void init_vulkan();
|
||||
void init_swapchain();
|
||||
|
|
@ -104,8 +109,10 @@ private:
|
|||
void init_descriptors();
|
||||
void init_pipelines();
|
||||
void init_background_pipelines();
|
||||
void init_imgui();
|
||||
|
||||
void create_swapchain(uint32_t width, uint32_t height);
|
||||
void destroy_swapchain();
|
||||
void draw_background(VkCommandBuffer cmd);
|
||||
void draw_imgui(VkCommandBuffer cmd, VkImageView targetImageView);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue