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