From 71befd8eaf7244badb0188b751066afacb8d8ee3 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 25 Oct 2024 22:57:43 -0500 Subject: render: create the rendering subsystem Create the rendering subsystem and populate it with a basic Vulkan renderer. This renderer is not yet functional and should not be used yet. Signed-off-by: Danny Holman --- render/vulkan/image.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 render/vulkan/image.h (limited to 'render/vulkan/image.h') diff --git a/render/vulkan/image.h b/render/vulkan/image.h new file mode 100644 index 0000000..9e5b101 --- /dev/null +++ b/render/vulkan/image.h @@ -0,0 +1,19 @@ +#ifndef VKIMAGE_H +#define VKIMAGE_H + +#include +#include "surface.h" +#include "device.h" + +struct vkimage { + VkImage handle; + VkDeviceMemory memory; + VkImageView view; + uint32_t width; + uint32_t height; +}; + +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); + +#endif -- cgit v1.2.3