diff options
Diffstat (limited to 'src/Gal.hpp')
-rw-r--r-- | src/Gal.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Gal.hpp b/src/Gal.hpp index 51d3bd6..82ede78 100644 --- a/src/Gal.hpp +++ b/src/Gal.hpp @@ -161,6 +161,8 @@ namespace Gal { virtual ~Texture() = default; virtual void SetData(std::vector<std::byte>&& data, size_t mipLevel = 0) = 0; + + virtual void SetSubData(size_t x, size_t y, size_t z, size_t width, size_t height, size_t depth, std::vector<std::byte> &&data, size_t mipLevel = 0) = 0; }; struct PipelineConfig { @@ -172,6 +174,8 @@ namespace Gal { virtual void AddShaderParameter(std::string_view name, Type type) = 0; + virtual void AddStaticTexture(std::string_view name, std::shared_ptr<Texture> texture) = 0; + virtual void SetTarget(std::shared_ptr<Framebuffer> target) = 0; virtual void SetPrimitive(Primitive primitive) = 0; |