From a62d0aea52df81648b9d429ffd5b3e8ef190ed52 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Wed, 27 Nov 2024 21:59:02 -0600 Subject: render: centralize the type definitions Centralize the type definitions for the Vulkan renderer. This removes the possibility for cyclic dependencies in the include paths. Signed-off-by: Danny Holman --- render/vulkan/swapchain.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'render/vulkan/swapchain.h') diff --git a/render/vulkan/swapchain.h b/render/vulkan/swapchain.h index d2f3d89..716aadd 100644 --- a/render/vulkan/swapchain.h +++ b/render/vulkan/swapchain.h @@ -1,21 +1,7 @@ #ifndef VKSWAPCHAIN_H #define VKSWAPCHAIN_H -#include "surface.h" -#include "device.h" - -struct vkswapchain { - VkSwapchainKHR handle; - VkSurfaceFormatKHR format_khr; - VkFormat format; - VkSemaphore render_complete; - VkImage *images; - VkImageView *views; - struct vkimage *depth_attachment; - uint8_t max_frames; - uint32_t frame; - uint32_t img_count; -}; +#include "vk_types.h" struct vkswapchain* create_swapchain(struct vksurface *surface, struct vkdev *dev); void destroy_swapchain(struct vkswapchain *swapchain, struct vkdev *dev); -- cgit v1.2.3