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:
authormano-wii <germano.costa@ig.com.br>2019-03-22 18:52:38 +0300
committermano-wii <germano.costa@ig.com.br>2019-03-22 19:08:02 +0300
commite061cb44378efaf159a30fb1c5834db48ffb2bb3 (patch)
tree387f6cccb660a600e04a3f873a78b91a2303d579 /source/blender/gpu/GPU_texture.h
parenta96ccf20b6c30a44873cca817b8fa23de5e44a05 (diff)
GPU: Create and use new GPU_texture_read_rect utility.
Diffstat (limited to 'source/blender/gpu/GPU_texture.h')
-rw-r--r--source/blender/gpu/GPU_texture.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_texture.h b/source/blender/gpu/GPU_texture.h
index e596fe9256e..18cf3dc4ced 100644
--- a/source/blender/gpu/GPU_texture.h
+++ b/source/blender/gpu/GPU_texture.h
@@ -185,6 +185,9 @@ void GPU_texture_update_sub(
int offset_x, int offset_y, int offset_z, int width, int height, int depth);
void *GPU_texture_read(GPUTexture *tex, eGPUDataFormat gpu_data_format, int miplvl);
+void GPU_texture_read_rect(
+ GPUTexture *tex, eGPUDataFormat gpu_data_format,
+ const struct rcti *rect, void *r_buf);
void GPU_invalid_tex_init(void);
void GPU_invalid_tex_bind(int mode);