summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h9
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);
};