From 7e555eeadd1f295db7700b8bde884fcb92bb2b8d Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 22 Oct 2023 20:03:33 +0300 Subject: swap chain recreation and minor stuff --- src/device.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/device.h') diff --git a/src/device.h b/src/device.h index fac15b9..b28c806 100644 --- a/src/device.h +++ b/src/device.h @@ -24,30 +24,28 @@ typedef struct device { VkQueue present_queue; VkSurfaceKHR surface; + + struct pipeline { + VkRenderPass render_pass; + VkPipelineLayout layout; + VkPipeline pipeline; + } pipeline; struct swap_chain { VkSwapchainKHR swap_chain; VkImage *images; VkImageView *image_views; + VkFramebuffer *framebuffers; u32 nimages; VkFormat image_format; VkExtent2D extent; } swap_chain; - struct pipeline { - VkRenderPass render_pass; - VkFramebuffer *framebuffers; - - VkPipelineLayout layout; - VkPipeline pipeline; - } pipeline; - struct command { VkCommandPool pool; VkCommandBuffer buffer; - // VkCommandBuffer *buffers; } command; struct sync { -- cgit v1.2.3