From 23086a5d33acc66414f1169bf22abe78b3383f94 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 13 Aug 2025 18:39:13 +0200 Subject: fix: more consistent formatting --- src/rendering/shader.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/rendering/shader.h') diff --git a/src/rendering/shader.h b/src/rendering/shader.h index fe869ba..f490f3c 100644 --- a/src/rendering/shader.h +++ b/src/rendering/shader.h @@ -20,17 +20,17 @@ namespace Donut virtual void bind() const = 0; virtual void unbind() const = 0; - virtual void set_int(const std::string& name, int value) = 0; + virtual void set_int( const std::string& name, int value) = 0; virtual void set_int_array(const std::string& name, int* values, uint32_t count) = 0; - virtual void set_float(const std::string& name, float value) = 0; - virtual void set_float2(const std::string& name, const glm::vec2& value) = 0; - virtual void set_float3(const std::string& name, const glm::vec3& value) = 0; - virtual void set_float4(const std::string& name, const glm::vec4& value) = 0; - virtual void set_mat4(const std::string& name, const glm::mat4& value) = 0; + virtual void set_float( const std::string& name, float value) = 0; + virtual void set_float2( const std::string& name, const glm::vec2& value) = 0; + virtual void set_float3( const std::string& name, const glm::vec3& value) = 0; + virtual void set_float4( const std::string& name, const glm::vec4& value) = 0; + virtual void set_mat4( const std::string& name, const glm::mat4& value) = 0; virtual void dispatch(uint32_t x, uint32_t y = 1, uint32_t z = 1) = 0; - virtual void dispatch_indirect(uint32_t offset = 0) = 0; - virtual void memory_barrier(uint32_t barriers) = 0; + virtual void dispatch_indirect(uint32_t offset = 0) = 0; + virtual void memory_barrier(uint32_t barriers) = 0; virtual const std::string& get_name() const = 0; @@ -50,7 +50,6 @@ namespace Donut std::shared_ptr get(const std::string& name); bool exists(const std::string& name) const; - private: std::unordered_map> m_shaders; }; -- cgit v1.3