summaryrefslogtreecommitdiff
path: root/src/renderer/backends/backend_vulkan.h
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-11 00:22:13 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-11 00:22:13 +1000
commiteedd332680dbdd367197616658903f00252f5a9c (patch)
treeb50b7fe4c014abd8fee65a2cb1567d8df9a38e7e /src/renderer/backends/backend_vulkan.h
parent3bd21c92678c62e61c10ba730e8c839edc5e967a (diff)
upload data using staging buffer. use vertex buffer data
Diffstat (limited to 'src/renderer/backends/backend_vulkan.h')
-rw-r--r--src/renderer/backends/backend_vulkan.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/renderer/backends/backend_vulkan.h b/src/renderer/backends/backend_vulkan.h
index 330ba18..0b0a492 100644
--- a/src/renderer/backends/backend_vulkan.h
+++ b/src/renderer/backends/backend_vulkan.h
@@ -75,4 +75,10 @@ typedef struct gpu_cmd_encoder {
typedef struct gpu_cmd_buffer {
VkCommandBuffer cmd_buffer;
-} gpu_cmd_buffer; \ No newline at end of file
+} gpu_cmd_buffer;
+
+typedef struct gpu_buffer {
+ VkBuffer handle;
+ VkDeviceMemory memory;
+ u64 size;
+} gpu_buffer;