Cleanup: Remove outdated comment and add new one about slot IDs.

This commit is contained in:
Thomas Dinges
2016-05-11 22:25:48 +02:00
parent 4a4f043bc4
commit 16ce1b78b0
2 changed files with 4 additions and 1 deletions

View File

@@ -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)