From 4512fafc57d2ad95b83c8476781ce105a2cdc4e5 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 29 Oct 2023 13:06:40 +0200 Subject: index buffer and staging --- src/graphics.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/graphics.h') 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); }; -- cgit v1.2.3