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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-02-06 14:23:03 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-02-06 14:23:03 +0300
commit385fe4f0ce8337e21ca8304c78718b597eea15ab (patch)
tree5db373d8c9c0e6c5c12d2a64508cf1e77bd28997 /source/blender/blenkernel/BKE_texture.h
parent223aff987aba127243658ab181dd473198a06aa5 (diff)
Add special texture sampling function which takes image pool argument
Using image pool will reduce number of thread locks when acquiring image. Useful when it's needed to sample texture fewzillion times a second.
Diffstat (limited to 'source/blender/blenkernel/BKE_texture.h')
-rw-r--r--source/blender/blenkernel/BKE_texture.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_texture.h b/source/blender/blenkernel/BKE_texture.h
index 1c5ea946f59..9a60eb29957 100644
--- a/source/blender/blenkernel/BKE_texture.h
+++ b/source/blender/blenkernel/BKE_texture.h
@@ -42,6 +42,7 @@ struct Brush;
struct ColorBand;
struct EnvMap;
struct FreestyleLineStyle;
+struct ImagePool;
struct Lamp;
struct Main;
struct Material;
@@ -133,6 +134,12 @@ struct OceanTex *BKE_texture_ocean_copy(struct OceanTex *ot);
bool BKE_texture_dependsOnTime(const struct Tex *texture);
bool BKE_texture_is_image_user(const struct Tex *tex);
+void BKE_texture_get_value_ex(
+ const struct Scene *scene, struct Tex *texture,
+ float *tex_co, struct TexResult *texres,
+ struct ImagePool *pool,
+ bool use_color_management);
+
void BKE_texture_get_value(
const struct Scene *scene, struct Tex *texture,
float *tex_co, struct TexResult *texres, bool use_color_management);