From 824579234685171f0ca78674c7c18dfe6b43fe6e Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Wed, 29 May 2024 14:10:55 +1000 Subject: start adding opengl backend --- src/renderer/backends/backend_vulkan.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/renderer/backends/backend_vulkan.h') diff --git a/src/renderer/backends/backend_vulkan.h b/src/renderer/backends/backend_vulkan.h index dc0f7bd..d92aa77 100644 --- a/src/renderer/backends/backend_vulkan.h +++ b/src/renderer/backends/backend_vulkan.h @@ -1,4 +1,5 @@ #pragma once +#if defined (CEL_REND_BACKEND_VULKAN) #include #include #include @@ -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 -- cgit v1.2.3-70-g09d2