From 3a43bab624f271588401daca46c512a1f85593f6 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 9 Feb 2021 21:00:33 +0100 Subject: 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 --- include/vk-api.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/vk-api.hpp') 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 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); -- cgit v1.3