summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/graphics.h b/src/graphics.h
index bac8300..e69582a 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -25,6 +25,12 @@ typedef struct buffer {
VkDeviceMemory memory;
} buffer_t;
+typedef struct image {
+ VkImage image;
+ VkImageView image_view;
+ VkDeviceMemory memory;
+} image_t;
+
typedef struct graphics {
VkInstance instance;
VkDebugUtilsMessengerEXT debug_messenger;
@@ -53,6 +59,8 @@ typedef struct graphics {
VkFramebuffer *framebuffers;
u32 nimages;
+ image_t depth_image;
+
VkFormat image_format;
VkExtent2D extent;
} swap_chain;
@@ -105,6 +113,6 @@ struct graphics_info {
graphics_t graphics_create(struct graphics_info *info);
void graphics_destroy(graphics_t device);
-int graphics_draw_frame(graphics_t device);
+int graphics_draw_frame(graphics_t device, u32 nvertices);
#endif