From e6d55c22bee063057c0f7b529baff2936e882f3d Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 7 Mar 2021 20:10:31 +0100 Subject: Make imgui backend more flexible (display demo scene) --- include/vk-api.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/vk-api.hpp') diff --git a/include/vk-api.hpp b/include/vk-api.hpp index 5b869f7..22429fa 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -11,6 +11,7 @@ struct Buffer { VmaAllocation alloc; VmaAllocationInfo alloc_info; VkBuffer handle; + size_t size; }; struct Pipeline { @@ -82,7 +83,7 @@ class vkapi { 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_graphics_pipeline(const char* shader_name, std::vector& bindings, VkShaderStageFlagBits shader_stages, VkRenderPass render_pass, std::vector dynamic_states); void destroy_pipeline(Pipeline &pipeline); -- cgit v1.3