summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-11-25 15:35:01 +0200
committerkartofen <mladenovnasko0@gmail.com>2023-11-25 15:35:01 +0200
commit4323e172facadb0af33c3295e019fcd5d8547ca5 (patch)
treec0ec9a440c6a34edc8300fc870f69cb5c7b7a617 /src/graphics.h
parent1e436946514f3a0e9fe3d091394db6b86e06f033 (diff)
depth image lets gooo
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