[Bf-blender-cvs] [16ce1b7] master: Cleanup: Remove outdated comment and add new one about slot IDs.

Thomas Dinges noreply at git.blender.org
Wed May 11 22:26:47 CEST 2016


Commit: 16ce1b78b054a344ee63b578dd9044e399ac3c77
Author: Thomas Dinges
Date:   Wed May 11 22:25:48 2016 +0200
Branches: master
https://developer.blender.org/rB16ce1b78b054a344ee63b578dd9044e399ac3c77

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

===================================================================

M	intern/cycles/kernel/geom/geom_volume.h
M	intern/cycles/render/image.cpp

===================================================================

diff --git a/intern/cycles/kernel/geom/geom_volume.h b/intern/cycles/kernel/geom/geom_volume.h
index 7bd3933..ef02c01 100644
--- a/intern/cycles/kernel/geom/geom_volume.h
+++ b/intern/cycles/kernel/geom/geom_volume.h
@@ -77,7 +77,6 @@ ccl_device float volume_attribute_float(KernelGlobals *kg, const ShaderData *sd,
 	if(dx) *dx = 0.0f;
 	if(dy) *dy = 0.0f;
 
-	/* todo: support float textures to lower memory usage for single floats */
 	return average(float4_to_float3(r));
 }
 
diff --git a/intern/cycles/render/image.cpp b/intern/cycles/render/image.cpp
index 102c610..40c4808 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)




More information about the Bf-blender-cvs mailing list