summaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-10-22 18:35:58 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-10-22 18:35:58 +0300
commit560f07e306da1906720ffc8a7de32069b8b7353e (patch)
treef2ec80f50bcac515515cb5d023b58d9dfdd7c6dc /src/device.h
parentff2497dc2c67d2b7df29b729c763b6e09c876d76 (diff)
triangle!!!!!!!!!!
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h15
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