diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-03-07 20:10:31 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-03-07 20:10:31 +0100 |
| commit | e6d55c22bee063057c0f7b529baff2936e882f3d (patch) | |
| tree | 1a7fe62cde7e2e23a24389f1efe2248aa686e570 /include/vk-api.hpp | |
| parent | 7e572410bb95a46db3bd3955cc7689ea87973cea (diff) | |
Make imgui backend more flexible (display demo scene)
Diffstat (limited to 'include/vk-api.hpp')
| -rw-r--r-- | include/vk-api.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<VkDescriptorSetLayoutBinding>& bindings); - Pipeline create_graphics_pipeline(const char* shader_name, std::vector<VkDescriptorSetLayoutBinding>& bindings, VkShaderStageFlagBits shader_stages, VkRenderPass render_pass); + Pipeline create_graphics_pipeline(const char* shader_name, std::vector<VkDescriptorSetLayoutBinding>& bindings, VkShaderStageFlagBits shader_stages, VkRenderPass render_pass, std::vector<VkDynamicState> dynamic_states); void destroy_pipeline(Pipeline &pipeline); |
