From 3c85e1ca1a916fe2ded9ab508f4cd55a2ee22549 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Thu, 12 May 2016 14:51:42 +0200 Subject: 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 --- intern/cycles/render/scene.h | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/render/scene.h') 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 tex_byte4_image[TEX_NUM_BYTE4_IMAGES_CPU]; device_vector tex_float4_image[TEX_NUM_FLOAT4_IMAGES_CPU]; device_vector tex_float_image[TEX_NUM_FLOAT_IMAGES_CPU]; + device_vector tex_byte_image[TEX_NUM_BYTE_IMAGES_CPU]; /* opencl images */ device_vector tex_image_byte4_packed; -- cgit v1.2.3