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>2020-07-30 17:40:20 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-30 17:44:57 +0300
commit55401fbb3d0daa82c999e388c2b5b87e7113b091 (patch)
tree251fbc87253b4b0ad2373530112c1d224dae33b5 /source/blender/imbuf/IMB_imbuf.h
parent008ccacdfc198c3645916c80f7704c46a9d4ef12 (diff)
IMB: Refactor util_gpu.c to not expose enum getters
This was causing compiler error on MSVC and is not a good idea in general.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h
index 089174f8d5a..ed56268e436 100644
--- a/source/blender/imbuf/IMB_imbuf.h
+++ b/source/blender/imbuf/IMB_imbuf.h
@@ -737,19 +737,20 @@ const char *IMB_ffmpeg_last_error(void);
*
* \attention defined in util_gpu.c
*/
-void IMB_gpu_get_format(const struct ImBuf *ibuf,
- bool high_bitdepth,
- uint *r_data_format,
- uint *r_texture_format);
-void *IMB_gpu_get_data(const struct ImBuf *ibuf,
- const bool do_rescale,
- const int rescale_size[2],
- const bool compress_as_srgb,
- const bool store_premultiplied,
- bool *r_freedata);
struct GPUTexture *IMB_create_gpu_texture(struct ImBuf *ibuf,
bool use_high_bitdepth,
bool use_premult);
+struct GPUTexture *IMB_touch_gpu_texture(
+ struct ImBuf *ibuf, int w, int h, int layers, bool use_high_bitdepth);
+void IMB_update_gpu_texture_sub(struct GPUTexture *tex,
+ struct ImBuf *ibuf,
+ int x,
+ int y,
+ int z,
+ int w,
+ int h,
+ bool use_high_bitdepth,
+ bool use_premult);
/**
*