hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering/texture.h')
-rw-r--r--src/rendering/texture.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rendering/texture.h b/src/rendering/texture.h
index e3c53f8..68866b5 100644
--- a/src/rendering/texture.h
+++ b/src/rendering/texture.h
@@ -17,11 +17,13 @@ namespace Donut
virtual void set_data(void* data, uint32_t size) = 0;
virtual void bind(uint32_t slot = 0) const = 0;
+ virtual void bind_as_image(uint32_t slot = 0, bool read_only = false) const = 0;
virtual bool operator==(const Texture& other) const = 0;
};
- class Texture2D : public Texture
+ class Texture2D
+ : public Texture
{
public:
static std::shared_ptr<Texture2D> create(uint32_t width, uint32_t height);