* Ajout d'un exemple CUDA non-openGL (AddVector.cu)
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 01_Rippling / moo / host / Rippling.cu
index eb49b08..43068a2 100755 (executable)
@@ -38,17 +38,13 @@ extern __global__ void rippling(uchar4* ptrDevPixels, int w, int h, float t);
  \*-------------------------*/\r
 \r
 Rippling::Rippling(int w, int h, float dt)\r
-    : w(w), h(h), dt(dt), t(0)\r
+    : w(w), h(h), dt(dt), t(0),\r
+      dg(8, 8, 1),\r
+      db(16, 16, 1),\r
+      title("Rippling Cuda")\r
     {\r
     assert(w == h);\r
 \r
-    // Tools\r
-    this->dg = dim3(8, 8, 1); // disons a optimiser\r
-    this->db = dim3(16, 16, 1); // disons a optimiser\r
-\r
-    // Outputs\r
-    this->title = "Rippling Cuda";\r
-\r
     //print(dg, db);\r
     Device::assertDim(dg, db);\r
     }\r