summaryrefslogtreecommitdiff
path: root/src/ral/backends/vulkan/backend_vulkan.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 09:56:36 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 09:56:36 +1000
commit0942a484a90695749f05d49273951f2b8d452866 (patch)
tree319aff81e879168b152505875e608aee26fed5ff /src/ral/backends/vulkan/backend_vulkan.h
parent01d598220b403f4ac4da3b7aa1f0ce398be3198f (diff)
merge
Diffstat (limited to 'src/ral/backends/vulkan/backend_vulkan.h')
-rw-r--r--src/ral/backends/vulkan/backend_vulkan.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/ral/backends/vulkan/backend_vulkan.h b/src/ral/backends/vulkan/backend_vulkan.h
index e69de29..790344b 100644
--- a/src/ral/backends/vulkan/backend_vulkan.h
+++ b/src/ral/backends/vulkan/backend_vulkan.h
@@ -0,0 +1,44 @@
+#pragma once
+
+#ifdef CEL_REND_BACKEND_VULKAN
+#include "ral_impl.h"
+#include "defines.h"
+#include "maths_types.h"
+#include "ral.h"
+#include "ral_types.h"
+
+#include <vulkan/vk_platform.h>
+#include <vulkan/vulkan.h>
+#include <vulkan/vulkan_core.h>
+
+// Provide definitions for RAL structs
+
+struct GPU_Swapchain {
+ VkSwapchainKHR handle;
+};
+
+struct GPU_Device {
+ VkPhysicalDevice physical_device;
+ VkDevice logical_device;
+};
+
+struct GPU_PipelineLayout {};
+ struct GPU_Pipeline {};
+ struct GPU_Renderpass {};
+ struct GPU_CmdEncoder {};
+ struct GPU_CmdBuffer {};
+ struct GPU_Buffer {
+ VkBuffer handle;
+ VkDeviceMemory memory;
+ u64 size;
+ };
+ struct GPU_Texture {
+ VkImage handle;
+ VkDeviceMemory memory;
+ u64 size;
+ VkImageView view;
+ VkSampler sampler;
+ char* debug_label;
+ };
+
+#endif