From 2d8f706efe6e0a02b3238c2f22e7cdce620e9807 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 13 Aug 2025 18:20:54 +0200 Subject: feat: compute shaders and compute textures --- src/platform/opengl/opengl_texture.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/platform/opengl/opengl_texture.h') 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 { -- cgit v1.3