From f1517709556827fb8b7bab00bdee4a9794d88dd1 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 13 Aug 2025 18:20:54 +0200 Subject: [add]: Compute shaders and Compute Textures --- src/Rendering/Texture.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Rendering/Texture.h') diff --git a/src/Rendering/Texture.h b/src/Rendering/Texture.h index eebce85..f17bb1d 100644 --- a/src/Rendering/Texture.h +++ b/src/Rendering/Texture.h @@ -17,11 +17,13 @@ namespace Donut virtual void SetData(void* data, uint32_t size) = 0; virtual void Bind(uint32_t slot = 0) const = 0; + virtual void BindAsImage(uint32_t slot = 0, bool readOnly = false) const = 0; virtual bool operator==(const Texture& other) const = 0; }; - class Texture2D : public Texture + class Texture2D + : public Texture { public: static std::shared_ptr Create(uint32_t width, uint32_t height); -- cgit v1.3