diff options
author | Thomas Dinges <blender@dingto.org> | 2016-05-11 23:25:48 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2016-05-11 23:25:48 +0300 |
commit | 16ce1b78b054a344ee63b578dd9044e399ac3c77 (patch) | |
tree | e5b88fe875cccee9311b026d979f696fbc0a7a61 /intern/cycles/render/image.cpp | |
parent | 4a4f043bc4235c046d2b58e00f2b80665ded11bf (diff) |
Cleanup: Remove outdated comment and add new one about slot IDs.
Diffstat (limited to 'intern/cycles/render/image.cpp')
-rw-r--r-- | intern/cycles/render/image.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/image.cpp b/intern/cycles/render/image.cpp index 102c6107fb7..40c48088c5a 100644 --- a/intern/cycles/render/image.cpp +++ b/intern/cycles/render/image.cpp @@ -196,6 +196,10 @@ ImageManager::ImageDataType ImageManager::get_image_metadata(const string& filen return IMAGE_DATA_TYPE_BYTE4; } +/* We use a consecutive slot counting scheme on the devices, in order + * float4, byte4, float. + * These functions convert the slot ids from ImageManager "images" ones + * to device ones and vice versa. */ int ImageManager::type_index_to_flattened_slot(int slot, ImageDataType type) { if(type == IMAGE_DATA_TYPE_BYTE4) |