summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Image.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-12-23 14:13:09 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-24 05:10:28 -0800
commitc72a996542001ef8424661c676e693a161186ddf (patch)
treec34281e806bd251e7950f12424267252a91362e4 /Userland/Libraries/LibSoftGPU/Image.h
parent5e9d99474dc4e8cfa9a18755ff0b580d3bbbb279 (diff)
downloadserenity-c72a996542001ef8424661c676e693a161186ddf.zip
LibSoftGPU: Add method to copy texels between images
Adds a method `copy_texels()` to class `Image` that copies a rect of texels from source image to destination.
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Image.h')
-rw-r--r--Userland/Libraries/LibSoftGPU/Image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Image.h b/Userland/Libraries/LibSoftGPU/Image.h
index 449e650e89..0edc0ce9de 100644
--- a/Userland/Libraries/LibSoftGPU/Image.h
+++ b/Userland/Libraries/LibSoftGPU/Image.h
@@ -41,6 +41,7 @@ public:
void write_texels(unsigned layer, unsigned level, Vector3<unsigned> const& offset, Vector3<unsigned> const& size, void const* data, ImageDataLayout const& layout);
void read_texels(unsigned layer, unsigned level, Vector3<unsigned> const& offset, Vector3<unsigned> const& size, void* data, ImageDataLayout const& layout) const;
+ void copy_texels(Image const& source, unsigned source_layer, unsigned source_level, Vector3<unsigned> const& source_offset, Vector3<unsigned> const& size, unsigned destination_layer, unsigned destination_level, Vector3<unsigned> const& destination_offset);
private:
void const* texel_pointer(unsigned layer, unsigned level, unsigned x, unsigned y, unsigned z) const