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/renderpass.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/renderpass.h')
-rw-r--r-- | render/vulkan/renderpass.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/render/vulkan/renderpass.h b/render/vulkan/renderpass.h index 9fbb417..2a27821 100644 --- a/render/vulkan/renderpass.h +++ b/render/vulkan/renderpass.h @@ -1,10 +1,7 @@ #ifndef VKRENDERPASS_H #define VKRENDERPASS_H -#include "swapchain.h" -#include "device.h" -#include <rune/util/types.h> -#include <cglm/cglm.h> +#include "vk_types.h" enum cmdbuf_state { CMDBUF_READY, @@ -14,19 +11,6 @@ enum cmdbuf_state { CMDBUF_SUBMIT }; -struct vkcmdbuffer { - VkCommandBuffer handle; - int state; -}; - -struct vkrendpass { - VkRenderPass handle; - vec4 area; - vec4 color; - float depth; - uint32_t stencil; -}; - struct vkcmdbuffer* create_vkcmdbuffer(struct vkdev *dev, int primary); void destroy_vkcmdbuffer(struct vkcmdbuffer *cmdbuffer, struct vkdev *dev); |