From 5115eb592d1477b355770eee9d6b913481d4859f Mon Sep 17 00:00:00 2001 From: kartofen Date: Fri, 20 Oct 2023 19:31:31 +0300 Subject: graphics pipeline --- src/device.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'src/device.h') diff --git a/src/device.h b/src/device.h index 3491b8a..05bdbc1 100644 --- a/src/device.h +++ b/src/device.h @@ -19,14 +19,29 @@ typedef struct device { VkPhysicalDevice physical_device; VkDevice logical_device; + VkQueue graphics_queue; VkQueue present_queue; - VkSwapchainKHR swap_chain; VkSurfaceKHR surface; + + struct swap_chain { + VkSwapchainKHR swap_chain; + + VkImage *images; + VkImageView *image_views; + u32 nimages; + + VkFormat image_format; + VkExtent2D extent; + } swap_chain; + + struct pipeline { + VkRenderPass render_pass; + VkPipelineLayout layout; + VkPipeline pipeline; + } pipeline; - VkImage *swap_chain_images; - u32 nimages; } * device_t; struct device_info { -- cgit v1.2.3