Implémentation du raytracing pour Global Memory/Shared Memory/Constant Memory
[GPU.git] / WCudaMSE / BilatTools_CPP / src / core / tools / header / namespace_cpu / IndiceTools_CPU.h
1 #ifndef INDICE_TOOLS_CPU_H_
2 #define INDICE_TOOLS_CPU_H_
3
4 #include "cudaType_CPU.h"
5
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14 namespace cpu
15 {
16 class IndiceTools
17 {
18
19 /*--------------------------------------*\
20 |* Constructor *|
21 \*--------------------------------------*/
22
23 public:
24
25 /*--------------------------------------*\
26 |* Methodes *|
27 \*--------------------------------------*/
28
29 public:
30
31 /**
32 * s[0,W*H[ --> i[0,H[ j[0,W[
33 */
34 static void toIJ(int s, int w, int* ptri, int* ptrj);
35
36 /**
37 * s[0,W*H[ --> x[0,W[ y[0,H[
38 */
39 static float2 toPixelFloat(int s, int w);
40
41 /**
42 * i[0,H[ j[0,W[ --> s[0,W*H[
43 */
44 static int toS(int w, int i, int j);
45
46 /*-------------------------------------*\
47 |* Attributs *|
48 \*-------------------------------------*/
49
50 private:
51
52 };
53 }
54
55 #endif
56
57 /*----------------------------------------------------------------------*\
58 |* End *|
59 \*---------------------------------------------------------------------*/