aboutsummaryrefslogtreecommitdiffstats
path: root/include/vk-api.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-02-23 22:42:47 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-02-23 22:42:47 +0100
commitdd8ac121ffc8b6f898eb99b8ddd72bcee45e5fd5 (patch)
tree43d375e65ca99442ce36bb1cc8f0857953ec5534 /include/vk-api.hpp
parent769c8ef8aa429cf13bac920607690d104dd4d3ed (diff)
Try to render imgui
Diffstat (limited to 'include/vk-api.hpp')
-rw-r--r--include/vk-api.hpp5
1 files changed, 3 insertions, 2 deletions
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<VkFramebuffer>& framebuffers);
- Pipeline create_compute_pipeline(const char* shader_name, std::vector<VkDescriptorSetLayoutBinding> bindings);
- Pipeline create_graphics_pipeline(const char* shader_name, std::vector<VkDescriptorSetLayoutBinding> bindings, VkShaderStageFlagBits shader_stages, VkRenderPass render_pass);
+ Pipeline create_compute_pipeline(const char* shader_name, std::vector<VkDescriptorSetLayoutBinding>& bindings);
+ Pipeline create_graphics_pipeline(const char* shader_name, std::vector<VkDescriptorSetLayoutBinding>& bindings, VkShaderStageFlagBits shader_stages, VkRenderPass render_pass);
void destroy_pipeline(Pipeline &pipeline);