-__global__
-void rayTracing(uchar4* ptrDevPixels, int w, int h, float t);
+#include "ConstantMemoryLink.h"
+
+#include "Sphere.h"
+#include "RayTracingCommon.h"
+
+#if CURRENT_MEMORY_MODEL == MEMORY_MODEL_GLOBAL or CURRENT_MEMORY_MODEL == MEMORY_MODEL_SHARED
+
+ __global__
+ void rayTracing(uchar4* ptrDevPixels, const Sphere* ptrDevSpheres, int w, int h, float t);
+
+#elif CURRENT_MEMORY_MODEL == MEMORY_MODEL_CONSTANT
+
+ /**
+ * Accès à la mémoire constante contenant les sphères.
+ */
+ ConstantMemoryLink constantMemorySpheresLink();
+
+ __global__
+ void rayTracing(uchar4* ptrDevPixels, int w, int h, float t);
+
+#endif