diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-02-09 21:00:33 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-02-09 21:00:33 +0100 |
| commit | 3a43bab624f271588401daca46c512a1f85593f6 (patch) | |
| tree | 541f8680689a46d5ee38eb7f8df5b30bbf8130a2 /include/vk-api.hpp | |
| parent | 6d156207ae26eb2398df87192a9cbf872cc166c8 (diff) | |
Extend API, fix api image creation, attempt at accumulation
Add blit_full function to the API
Fix the create_image function
Change the frame record to use an accumulation image
Diffstat (limited to 'include/vk-api.hpp')
| -rw-r--r-- | include/vk-api.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vk-api.hpp b/include/vk-api.hpp index 099f4de..ed8ff65 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -22,14 +22,18 @@ struct ComputePipeline { struct Image { VkImage handle; VkImageView view; + VmaAllocation alloc; VkImageSubresourceRange subresource_range; VkFormat format; + VkExtent3D size; }; struct Swapchain { size_t image_count; std::vector<Image> images; VkSwapchainKHR handle; + VkSurfaceFormatKHR surface_format; + VkExtent2D extent; }; class window; @@ -90,6 +94,8 @@ class vkapi { void run_compute_pipeline(VkCommandBuffer command_buffer, ComputePipeline pipeline, VkDescriptorSet set, size_t group_count_x, size_t group_count_y, size_t group_count_z); + void blit_full(VkCommandBuffer command_buffer, Image src_image, Image dst_image); + void end_record(VkCommandBuffer command_buffer); VkResult submit(VkCommandBuffer command_buffer, VkSemaphore wait_semaphore, VkSemaphore signal_semaphore, VkFence submission_fence); |
