summaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-10-22 20:03:33 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-10-22 20:03:33 +0300
commit7e555eeadd1f295db7700b8bde884fcb92bb2b8d (patch)
tree14ca519023f8e2e208d95d0250ee37a7b1b75fa8 /src/device.h
parent560f07e306da1906720ffc8a7de32069b8b7353e (diff)
swap chain recreation and minor stuff
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h16
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 {