From 560f07e306da1906720ffc8a7de32069b8b7353e Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 22 Oct 2023 18:35:58 +0300 Subject: triangle!!!!!!!!!! --- src/device.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/device.h') diff --git a/src/device.h b/src/device.h index 05bdbc1..fac15b9 100644 --- a/src/device.h +++ b/src/device.h @@ -38,10 +38,24 @@ typedef struct device { struct pipeline { VkRenderPass render_pass; + VkFramebuffer *framebuffers; + VkPipelineLayout layout; VkPipeline pipeline; } pipeline; + struct command { + VkCommandPool pool; + VkCommandBuffer buffer; + // VkCommandBuffer *buffers; + } command; + + struct sync { + VkSemaphore semph_image_available; + VkSemaphore semph_render_finished; + VkFence fence_inflight; + } sync; + } * device_t; struct device_info { @@ -56,5 +70,6 @@ struct device_info { device_t device_create(struct device_info *info); void device_destroy(device_t device); +int device_draw_frame(device_t device); #endif -- cgit v1.2.3