 texture<uchar4, 1, cudaReadModeNormalizedFloat> tex_tf;
 #endif
 
+#ifdef VOL3TEX3D
+#ifdef FLOATDATA
+texture<float, 3, cudaReadModeElementType> tex_raw;
+#else
+texture<uchar, 3, cudaReadModeNormalizedFloat> tex_raw;
+#endif
+#endif
 
 #ifdef FLOATDATA
 typedef float Scalar;

            const float4 c = tex1Dfetch(tex_tf, *v*255.f);
#else
            const float4 c = tex1Dfetch(tex_tf, *v);
#endif
#endif
#endif

#endif
   }

#ifdef VOL3TEX3D
   cudaUnbindTexture(tex_raw);
#endif

   // copy back or unmap for using as PBO
   ok = vvCuda::checkError(&ok, cudaGetLastError(), "start kernel");
#ifndef NODISPLAY
