diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-30 21:46:39 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-30 21:46:39 +0100 |
| commit | d7fdab1113623478fecf509c3fd81268d9459b84 (patch) | |
| tree | 9635a6d07534dde1d3c29ee8dbc1c49eb1c4fb90 /include/vk-api.hpp | |
| parent | f24c2bba8159e5a42397ecfc82a669a94f5ad4b3 (diff) | |
Add record commands and image barrier functions to api
Diffstat (limited to 'include/vk-api.hpp')
| -rw-r--r-- | include/vk-api.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/vk-api.hpp b/include/vk-api.hpp index c4b51aa..761b91d 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -82,6 +82,13 @@ class vkapi { void update_descriptor_set_buffer(VkDescriptorSet set, VkDescriptorSetLayoutBinding binding, Buffer& buffer); void update_descriptor_set_image(VkDescriptorSet set, VkDescriptorSetLayoutBinding binding, VkImageView view); + + + void start_record(VkCommandBuffer command_buffer); + + void image_barrier(VkCommandBuffer command_buffer, VkImageLayout src_layout, VkImageLayout dst_layout, VkPipelineStageFlagBits src_stage, VkPipelineStageFlagBits dst_stage, VkAccessFlags src_access, VkAccessFlags dst_access, Image image); + + void end_record(VkCommandBuffer command_buffer); // private: vkcontext context; |
