                                              IntMemsetFunctor(-2)),
                                              "init");
     eavlExecutor::Go();
+    eavlExecutor::AddOperation(new_eavlMapOp(eavlOpArgs(rayDirX,rayDirY,rayDirZ,rayOriginX,rayOriginY,rayOriginZ,hitIdx,primitiveTypeHit,minDistances),
+                                             eavlOpArgs(dummy, depthBuffer, primitiveTypeHit),
+                                             RayIntersectFunctor(tri_verts_array,tri_bvh_in_array,tri_bvh_lf_array, TRIANGLE )),
+                                                                                                    "intersect");
+    eavlExecutor::Go();
+
     //eavlExecutor::AddOperation(new_eavlMapOp(eavlOpArgs(rayDirX,rayDirY,rayDirZ,rayOriginX,rayOriginY,rayOriginZ,hitIdx,primitiveTypeHit,minDistances),
-    //                                             eavlOpArgs(dummy, depthBuffer, primitiveTypeHit),
-    //                                             RayIntersectFunctor(tri_verts_array,tri_bvh_in_array,tri_bvh_lf_array, TRIANGLE )),
+    //                                         eavlOpArgs(dummy, depthBuffer, primitiveTypeHit),
+    //                                         RayIntersectFunctor(sphr_verts_array,sphr_bvh_in_array,sphr_bvh_lf_array,SPHERE)),
     //                                                                                                "intersect");
     //eavlExecutor::Go();
-
-    eavlExecutor::AddOperation(new_eavlMapOp(eavlOpArgs(rayDirX,rayDirY,rayDirZ,rayOriginX,rayOriginY,rayOriginZ,hitIdx,primitiveTypeHit,minDistances),
-                                             eavlOpArgs(dummy, depthBuffer, primitiveTypeHit),
-                                             RayIntersectFunctor(sphr_verts_array,sphr_bvh_in_array,sphr_bvh_lf_array,SPHERE)),
-                                                                                                    "intersect");
-    eavlExecutor::Go();
     float maxDepth=0;
     float minDepth=INFINITE;
 

    }
    EAVL_HOSTONLY  void unbind(texture<T> g_textureRef)
    {
        cudaUnbindTexture(g_textureRef);
        CUDA_CHECK_ERROR();
    }
#else
    EAVL_DEVICEONLY const T &getValue(texture<T> g_textureRef, int index) const

    colorMapSize=2;
    colorMap_raw= new float[8];
    for(int i=0;i<8;i++) colorMap_raw[i]=1.f;
    cmap_array = new eavlConstArrayV2<float4>((float4*)colorMap_raw, colorMapSize, color_map_tref, cpu);

}

