hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_texture.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-13 18:20:54 +0200
committerhachem <im@hachem.wtf>2025-08-13 18:20:54 +0200
commit2d8f706efe6e0a02b3238c2f22e7cdce620e9807 (patch)
tree06734503f8422c1509da09b5dd6a3ce50bad875c /src/platform/opengl/opengl_texture.h
parent3b02022fd79ad0e130b8c49e7707d221bfc97bb5 (diff)
feat: compute shaders and compute textures
Diffstat (limited to 'src/platform/opengl/opengl_texture.h')
-rw-r--r--src/platform/opengl/opengl_texture.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/platform/opengl/opengl_texture.h b/src/platform/opengl/opengl_texture.h
index 0782e8b..ddd4f39 100644
--- a/src/platform/opengl/opengl_texture.h
+++ b/src/platform/opengl/opengl_texture.h
@@ -5,7 +5,8 @@
namespace Donut
{
- class OpenGLTexture2D : public Texture2D
+ class OpenGLTexture2D
+ : public Texture2D
{
public:
OpenGLTexture2D(uint32_t width, uint32_t height);
@@ -18,6 +19,7 @@ namespace Donut
virtual void set_data(void* data, uint32_t size) override;
virtual void bind(uint32_t slot = 0) const override;
+ virtual void bind_as_image(uint32_t slot = 0, bool read_only = false) const override;
virtual bool operator==(const Texture& other) const override
{