diff options
author | Danny Holman <dholman@gymli.org> | 2024-11-27 21:59:02 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-11-27 22:02:08 -0600 |
commit | a62d0aea52df81648b9d429ffd5b3e8ef190ed52 (patch) | |
tree | 9769372666083d511578a0ac98b3c1ae883173bd /render/vulkan/image.h | |
parent | 6944276194f05c2a61aa92fe7b9104a7b947f43d (diff) |
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 <dholman@gymli.org>
Diffstat (limited to 'render/vulkan/image.h')
-rw-r--r-- | render/vulkan/image.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/render/vulkan/image.h b/render/vulkan/image.h index 9e5b101..7b96695 100644 --- a/render/vulkan/image.h +++ b/render/vulkan/image.h @@ -1,17 +1,7 @@ #ifndef VKIMAGE_H #define VKIMAGE_H -#include <rune/util/types.h> -#include "surface.h" -#include "device.h" - -struct vkimage { - VkImage handle; - VkDeviceMemory memory; - VkImageView view; - uint32_t width; - uint32_t height; -}; +#include "vk_types.h" struct vkimage* create_vkimage(struct vkdev *dev, VkFormat format, uint32_t width, uint32_t height, uint32_t usage, uint32_t mem_flags, uint32_t aflags, int create_view); void destroy_vkimage(struct vkimage *image, struct vkdev *dev); |