diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-10-29 13:06:40 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-10-29 13:06:40 +0200 |
commit | 4512fafc57d2ad95b83c8476781ce105a2cdc4e5 (patch) | |
tree | a37817c9bfa2f183f02439a31dcb38f78a7a0ccc /src/graphics.h | |
parent | ff5bf11c5f319f9c90de7a59eb4f8f338a74a38f (diff) |
index buffer and staging
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/graphics.h b/src/graphics.h index 470ea9b..71a8889 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -33,6 +33,7 @@ typedef struct graphics { VkQueue graphics_queue; VkQueue present_queue; + VkQueue transfer_queue; VkSurfaceKHR surface; @@ -57,16 +58,16 @@ typedef struct graphics { struct command { VkCommandPool pool; VkCommandBuffer buffer; - } command; + } command_graphics, command_transfer; struct sync { VkSemaphore semph_image_available; VkSemaphore semph_render_finished; VkFence fence_inflight; } sync; - + buffer_t vertex_buffer; - buffer_t staging_buffer; + buffer_t index_buffer; } * graphics_t; @@ -79,6 +80,8 @@ struct graphics_info { vertex_t *vertices; size_t nvertices; + u32 *indices; + size_t nindices; int (*surface_func)(VkInstance instance, VkSurfaceKHR *surface); }; |