aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/Shader.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-13 18:39:13 +0200
committerhachem <im@hachem.wtf>2025-08-13 18:39:13 +0200
commit8a0b2a59c9809d5fc8e6a30c2abc4d5af21aa39e (patch)
tree41adf621418b790100d207c1534236945b431d1e /src/Rendering/Shader.h
parentf1517709556827fb8b7bab00bdee4a9794d88dd1 (diff)
[fix]: More consistent formatting
Diffstat (limited to 'src/Rendering/Shader.h')
-rw-r--r--src/Rendering/Shader.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Rendering/Shader.h b/src/Rendering/Shader.h
index aa46f07..ef0bdb1 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 SetInt(const std::string& name, int value) = 0;
+ virtual void SetInt( const std::string& name, int value) = 0;
virtual void SetIntArray(const std::string& name, int* values, uint32_t count) = 0;
- virtual void SetFloat(const std::string& name, float value) = 0;
- virtual void SetFloat2(const std::string& name, const glm::vec2& value) = 0;
- virtual void SetFloat3(const std::string& name, const glm::vec3& value) = 0;
- virtual void SetFloat4(const std::string& name, const glm::vec4& value) = 0;
- virtual void SetMat4(const std::string& name, const glm::mat4& value) = 0;
+ virtual void SetFloat( const std::string& name, float value) = 0;
+ virtual void SetFloat2( const std::string& name, const glm::vec2& value) = 0;
+ virtual void SetFloat3( const std::string& name, const glm::vec3& value) = 0;
+ virtual void SetFloat4( const std::string& name, const glm::vec4& value) = 0;
+ virtual void SetMat4( 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 DispatchIndirect(uint32_t offset = 0) = 0;
- virtual void MemoryBarrier(uint32_t barriers) = 0;
+ virtual void DispatchIndirect(uint32_t offset = 0) = 0;
+ virtual void MemoryBarrier(uint32_t barriers) = 0;
virtual const std::string& GetName() const = 0;
@@ -50,7 +50,6 @@ namespace Donut
std::shared_ptr<Shader> Get(const std::string& name);
bool Exists(const std::string& name) const;
-
private:
std::unordered_map<std::string, std::shared_ptr<Shader>> m_Shaders;
};