diff options
| author | hachem <im@hachem.wtf> | 2025-08-13 18:20:54 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-13 18:20:54 +0200 |
| commit | 2d8f706efe6e0a02b3238c2f22e7cdce620e9807 (patch) | |
| tree | 06734503f8422c1509da09b5dd6a3ce50bad875c /src/rendering/texture.h | |
| parent | 3b02022fd79ad0e130b8c49e7707d221bfc97bb5 (diff) | |
feat: compute shaders and compute textures
Diffstat (limited to 'src/rendering/texture.h')
| -rw-r--r-- | src/rendering/texture.h | 4 |
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); |
