From eee975a13c29ddbc838284a941332b905a18b430 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 02:27:02 +0200 Subject: refactor: trailing return types in the Vulkan backend --- src/platform/vulkan/vulkan_renderer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/platform/vulkan/vulkan_renderer.h') diff --git a/src/platform/vulkan/vulkan_renderer.h b/src/platform/vulkan/vulkan_renderer.h index 0bf2395..3ea330d 100644 --- a/src/platform/vulkan/vulkan_renderer.h +++ b/src/platform/vulkan/vulkan_renderer.h @@ -5,7 +5,7 @@ namespace Donut { - void vulkan_prepare_glfw(); + auto vulkan_prepare_glfw() -> void; class VulkanRenderer { @@ -13,14 +13,14 @@ namespace Donut VulkanRenderer(); ~VulkanRenderer(); - bool init(void* glfwWindow, int width, int height); - void shutdown(); + auto init(void* glfwWindow, int width, int height) -> bool; + auto shutdown() -> void; - bool init_im_gui(); + auto init_im_gui() -> bool; - void draw_frame(const glm::vec4& clear_color, const std::function& build_ui = {}); + auto draw_frame(const glm::vec4& clearColor, const std::function& buildUI = {}) -> void; - void on_resize(int width, int height); + auto on_resize(int width, int height) -> void; private: struct Impl; -- cgit v1.3