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:
authorThomas Dinges <blender@dingto.org>2016-05-12 15:51:42 +0300
committerThomas Dinges <blender@dingto.org>2016-05-12 15:51:42 +0300
commit3c85e1ca1a916fe2ded9ab508f4cd55a2ee22549 (patch)
tree97d80514ed304f00ca264da319b4861ed879f60d /intern/cycles/render/scene.h
parentcde10e774c39bc4359259558abed6263ed15c392 (diff)
Cycles: Add support for single channel byte textures.
This way, we also save 3/4th of memory for single channel byte textures (e.g. Bump Maps). Note: In order for this to work, the texture *must* have 1 channel only. In Gimp you can e.g. do that via the menu: Image -> Mode -> Grayscale
Diffstat (limited to 'intern/cycles/render/scene.h')
-rw-r--r--intern/cycles/render/scene.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/scene.h b/intern/cycles/render/scene.h
index 34050851d8e..435d7a396c5 100644
--- a/intern/cycles/render/scene.h
+++ b/intern/cycles/render/scene.h
@@ -112,6 +112,7 @@ public:
device_vector<uchar4> tex_byte4_image[TEX_NUM_BYTE4_IMAGES_CPU];
device_vector<float4> tex_float4_image[TEX_NUM_FLOAT4_IMAGES_CPU];
device_vector<float> tex_float_image[TEX_NUM_FLOAT_IMAGES_CPU];
+ device_vector<uchar> tex_byte_image[TEX_NUM_BYTE_IMAGES_CPU];
/* opencl images */
device_vector<uchar4> tex_image_byte4_packed;