summaryrefslogtreecommitdiff
path: root/src/renderer/backends/backend_vulkan.h
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-04-28 21:52:10 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-04-28 21:52:10 +1000
commit24e2e5f0b8675d498c188f221ea0a309d5911206 (patch)
tree96e9499dcdc5322bdef9ac2bb6ba9aea541a3e63 /src/renderer/backends/backend_vulkan.h
parent896c88ac83229d7bac62f521cc4e011cfd1d6457 (diff)
start on pipeline layout, pipeline, renderpass
Diffstat (limited to 'src/renderer/backends/backend_vulkan.h')
-rw-r--r--src/renderer/backends/backend_vulkan.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/renderer/backends/backend_vulkan.h b/src/renderer/backends/backend_vulkan.h
index dfe6a0f..9802311 100644
--- a/src/renderer/backends/backend_vulkan.h
+++ b/src/renderer/backends/backend_vulkan.h
@@ -4,6 +4,7 @@
#include <vulkan/vulkan_core.h>
#include "defines.h"
+#include "ral.h"
#define GPU_SWAPCHAIN_IMG_COUNT 2
@@ -16,6 +17,7 @@ Conventions:
typedef struct gpu_swapchain {
VkSwapchainKHR handle;
} gpu_swapchain;
+
typedef struct gpu_device {
// In Vulkan we store both physical and logical device here
VkPhysicalDevice physical_device;
@@ -25,11 +27,18 @@ typedef struct gpu_device {
VkPhysicalDeviceMemoryProperties memory;
VkCommandPool pool;
} gpu_device;
+
+typedef struct gpu_pipeline_layout {
+ VkPipelineLayout handle;
+} gpu_pipeline_layout;
+
typedef struct gpu_pipeline {
+ VkPipeline handle;
+ VkPipelineLayout layout_handle;
} gpu_pipeline;
typedef struct gpu_renderpass {
- VkRenderPass vk_handle;
+ VkRenderPass handle;
VkFramebuffer framebuffers[GPU_SWAPCHAIN_IMG_COUNT];
} gpu_renderpass;