hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/vulkan/vulkan_renderer.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 02:27:02 +0200
committerhachem <im@hachem.wtf>2026-08-20 02:40:07 +0200
commiteee975a13c29ddbc838284a941332b905a18b430 (patch)
treec043275c24c640a872fedfc8de1bcf434bda59b0 /src/platform/vulkan/vulkan_renderer.h
parent31f6a54d35dd13f0911f132dc60f5f0d851d7e43 (diff)
refactor: trailing return types in the Vulkan backend
Diffstat (limited to 'src/platform/vulkan/vulkan_renderer.h')
-rw-r--r--src/platform/vulkan/vulkan_renderer.h12
1 files changed, 6 insertions, 6 deletions
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<void()>& build_ui = {});
+ auto draw_frame(const glm::vec4& clearColor, const std::function<void()>& buildUI = {}) -> void;
- void on_resize(int width, int height);
+ auto on_resize(int width, int height) -> void;
private:
struct Impl;