projects
/
GPU.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implémentation du raytracing pour Global Memory/Shared Memory/Constant Memory
[GPU.git]
/
WCudaMSE
/
Student_Cuda_Image
/
src
/
cpp
/
core
/
04_RayTracing
/
moo
/
host
/
RayTracing.h
diff --git
a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h
b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h
index
80729b8
..
1f9536d
100644
(file)
--- a/
WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h
+++ b/
WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h
@@
-4,6
+4,8
@@
#include "cudaTools.h"
#include "Animable_I.h"
#include "MathTools.h"
#include "cudaTools.h"
#include "Animable_I.h"
#include "MathTools.h"
+#include "AleaTools.h"
+
#include "Sphere.h"
class RayTracing : public Animable_I
#include "Sphere.h"
class RayTracing : public Animable_I
@@
-20,11
+22,18
@@
class RayTracing : public Animable_I
float getT() /*override*/;
float getT() /*override*/;
- string getTitle(void) /*override*/;
+ st
d::st
ring getTitle(void) /*override*/;
private:
private:
+ /**
+ * Crée un tablean de 'n' sphères dont le rayon, la couleur et la position sont générés aléatoirement.
+ */
Sphere* createSpheres(int n);
Sphere* createSpheres(int n);
+ Sphere* ptrDevSpheres; // Pointeur sur la mémoire du GPU.
+
+ AleaTools alea;
+
float t;
const int w;
float t;
const int w;
@@
-33,7
+42,7
@@
class RayTracing : public Animable_I
const dim3 dg;
const dim3 db;
const dim3 dg;
const dim3 db;
- const string title;
+ const st
d::st
ring title;
};
#endif
};
#endif