From dd8ac121ffc8b6f898eb99b8ddd72bcee45e5fd5 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 23 Feb 2021 22:42:47 +0100 Subject: Try to render imgui --- include/vk-api.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/vk-api.hpp') diff --git a/include/vk-api.hpp b/include/vk-api.hpp index ed2803b..67a5855 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -40,6 +40,7 @@ struct Swapchain { class window; +// TODO: Make the api manage ressources class vkapi { public: vkapi(); @@ -80,8 +81,8 @@ class vkapi { void destroy_framebuffers(std::vector& framebuffers); - Pipeline create_compute_pipeline(const char* shader_name, std::vector bindings); - Pipeline create_graphics_pipeline(const char* shader_name, std::vector bindings, VkShaderStageFlagBits shader_stages, VkRenderPass render_pass); + Pipeline create_compute_pipeline(const char* shader_name, std::vector& bindings); + Pipeline create_graphics_pipeline(const char* shader_name, std::vector& bindings, VkShaderStageFlagBits shader_stages, VkRenderPass render_pass); void destroy_pipeline(Pipeline &pipeline); -- cgit v1.3