summaryrefslogtreecommitdiff
path: root/src/renderer/backends/backend_vulkan.h
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-04-28 11:02:21 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-04-28 11:02:27 +1000
commit5e382c2095bc4891e2952ba87609f2796f2248ad (patch)
treeb3a87539ec5e31083b5d9fd83e19b54bf6f59696 /src/renderer/backends/backend_vulkan.h
parent411520b240446f878a27c5d89812000774cc3c15 (diff)
start porting vulkan code to new RAL
Diffstat (limited to 'src/renderer/backends/backend_vulkan.h')
-rw-r--r--src/renderer/backends/backend_vulkan.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/renderer/backends/backend_vulkan.h b/src/renderer/backends/backend_vulkan.h
index 05f043e..dfe6a0f 100644
--- a/src/renderer/backends/backend_vulkan.h
+++ b/src/renderer/backends/backend_vulkan.h
@@ -1,9 +1,20 @@
#pragma once
+#include <vulkan/vk_platform.h>
+#include <vulkan/vulkan.h>
+#include <vulkan/vulkan_core.h>
+
#include "defines.h"
#define GPU_SWAPCHAIN_IMG_COUNT 2
+/*
+Conventions:
+ - Place the 'handle' as the first field of a struct
+ - Vulkan specific data goes at the top, followed by our internal data
+*/
+
typedef struct gpu_swapchain {
+ VkSwapchainKHR handle;
} gpu_swapchain;
typedef struct gpu_device {
// In Vulkan we store both physical and logical device here