hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/shader.h
diff options
context:
space:
mode:
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 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<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;
};