diff options
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 16 |
1 files changed, 7 insertions, 9 deletions
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 { |