From 62ae550170402a0fa0dbbbb2b739176d5c4bcf1e Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 19 Aug 2026 20:27:03 +0200 Subject: feat: Vulkan renderer and test pipeline --- src/platform/vulkan/vulkan_renderer.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/platform/vulkan/vulkan_renderer.h (limited to 'src/platform/vulkan/vulkan_renderer.h') diff --git a/src/platform/vulkan/vulkan_renderer.h b/src/platform/vulkan/vulkan_renderer.h new file mode 100644 index 0000000..0bf2395 --- /dev/null +++ b/src/platform/vulkan/vulkan_renderer.h @@ -0,0 +1,29 @@ +#pragma once + +#include +#include + +namespace Donut +{ + void vulkan_prepare_glfw(); + + class VulkanRenderer + { + public: + VulkanRenderer(); + ~VulkanRenderer(); + + bool init(void* glfwWindow, int width, int height); + void shutdown(); + + bool init_im_gui(); + + void draw_frame(const glm::vec4& clear_color, const std::function& build_ui = {}); + + void on_resize(int width, int height); + + private: + struct Impl; + Impl* m_impl = nullptr; + }; +} -- cgit v1.3