summaryrefslogtreecommitdiff
path: root/src/renderer/backends/backend_vulkan.h
diff options
context:
space:
mode:
authorJoshua Rowe <17525998+omnisci3nce@users.noreply.github.com>2024-06-09 14:59:01 +1000
committerGitHub <noreply@github.com>2024-06-09 14:59:01 +1000
commit9c79df522980eabdc5e52592cbd152e2a285c4cc (patch)
tree9082af194033e5e3e4a770456209d3bac7784943 /src/renderer/backends/backend_vulkan.h
parent8d116bd23d9441e33cb3377e90c08169109b438a (diff)
parentd4ff15d9cd82a6e3bc71da9d04ee0f250460cef1 (diff)
Merge pull request #16 from omnisci3nce/port-opengl-ral
Bring back OpenGL (part 1)
Diffstat (limited to 'src/renderer/backends/backend_vulkan.h')
-rw-r--r--src/renderer/backends/backend_vulkan.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/renderer/backends/backend_vulkan.h b/src/renderer/backends/backend_vulkan.h
index dc0f7bd..6ca0bb5 100644
--- a/src/renderer/backends/backend_vulkan.h
+++ b/src/renderer/backends/backend_vulkan.h
@@ -1,9 +1,10 @@
#pragma once
+#include "defines.h"
+#if defined(CEL_REND_BACKEND_VULKAN)
#include <vulkan/vk_platform.h>
#include <vulkan/vulkan.h>
#include <vulkan/vulkan_core.h>
-#include "defines.h"
#include "mem.h"
#include "ral.h"
#include "ral_types.h"
@@ -35,6 +36,7 @@ typedef struct gpu_swapchain {
VkSwapchainKHR handle;
arena swapchain_arena;
VkExtent2D extent;
+ u32x2 dimensions;
VkSurfaceFormatKHR image_format;
VkPresentModeKHR present_mode;
u32 image_count;
@@ -113,3 +115,4 @@ typedef struct gpu_texture {
VkSampler sampler;
char* debug_label;
} gpu_texture;
+#endif \ No newline at end of file