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
/
RayTracingCommon.h
diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/RayTracingCommon.h
b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/RayTracingCommon.h
new file mode 100644
(file)
index 0000000..
0f2d3ae
--- /dev/null
+++ b/
WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/RayTracingCommon.h
@@ -0,0
+1,13
@@
+#ifndef RAY_TRACING_COMMON
+#define RAY_TRACING_COMMON
+
+#define NB_SPHERES 2000
+
+
+#define MEMORY_MODEL_GLOBAL 1
+#define MEMORY_MODEL_CONSTANT 2
+#define MEMORY_MODEL_SHARED 3
+
+#define CURRENT_MEMORY_MODEL MEMORY_MODEL_SHARED
+
+#endif