summaryrefslogtreecommitdiff
path: root/render/vulkan/fence.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-11-27 21:59:02 -0600
committerDanny Holman <dholman@gymli.org>2024-11-27 22:02:08 -0600
commita62d0aea52df81648b9d429ffd5b3e8ef190ed52 (patch)
tree9769372666083d511578a0ac98b3c1ae883173bd /render/vulkan/fence.h
parent6944276194f05c2a61aa92fe7b9104a7b947f43d (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/fence.h')
-rw-r--r--render/vulkan/fence.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/render/vulkan/fence.h b/render/vulkan/fence.h
index 34af87d..16e309d 100644
--- a/render/vulkan/fence.h
+++ b/render/vulkan/fence.h
@@ -1,14 +1,7 @@
#ifndef VKFENCE_H
#define VKFENCE_H
-#include "device.h"
-#include <rune/util/types.h>
-#include <vulkan/vulkan.h>
-
-struct vkfence {
- VkFence handle;
- int signal;
-};
+#include "vk_types.h"
struct vkfence* create_vkfence(struct vkdev *dev, uint8_t signal);
void destroy_vkfence(struct vkfence *fence, struct vkdev *dev);