Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-05-18 22:49:08 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-05-19 00:01:08 +0300
commit33c5adba627b60d8a7504704bc5e9c80d7bd5ff0 (patch)
treeeb29537c72db2e8164cbee21de7f852bc031fc39 /source/blender/gpu/intern/gpu_storage_buffer_private.hh
parent9631bb1e17425d9dd9acdf06b251dd98e1838441 (diff)
GPUStorageBuf: Add `GPU_storagebuf_copy_sub_from_vertbuf()`
This allows using the Graphic API to copy buffer data. The GPU module do not expose untyped buffers even if that's what most API do, so the copy function need to be strongly typed. Contains GL backend implementation.
Diffstat (limited to 'source/blender/gpu/intern/gpu_storage_buffer_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_storage_buffer_private.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_storage_buffer_private.hh b/source/blender/gpu/intern/gpu_storage_buffer_private.hh
index 06e7c2c0e9d..091e6c2d386 100644
--- a/source/blender/gpu/intern/gpu_storage_buffer_private.hh
+++ b/source/blender/gpu/intern/gpu_storage_buffer_private.hh
@@ -43,6 +43,7 @@ class StorageBuf {
virtual void clear(eGPUTextureFormat internal_format,
eGPUDataFormat data_format,
void *data) = 0;
+ virtual void copy_sub(VertBuf *src, uint dst_offset, uint src_offset, uint copy_size) = 0;
};
/* Syntactic sugar. */