X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FBilatTools_CPP%2Fsrc%2Fcore%2Ftools%2Fheader%2Fnamespace_cpu%2FcudaType_CPU.h;fp=WCudaMSE%2FBilatTools_CPP%2Fsrc%2Fcore%2Ftools%2Fheader%2Fnamespace_cpu%2FcudaType_CPU.h;h=78098b569239a875e7dab4db4e248910a78146d0;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/cudaType_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/cudaType_CPU.h new file mode 100755 index 0000000..78098b5 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/cudaType_CPU.h @@ -0,0 +1,48 @@ +#ifndef CUDA_TYPE_CPU_H_ +#define CUDA_TYPE_CPU_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +// Attention : code duplicated : aussi dans shared_lib api image +// Contrainte : Les deux versions doivent etre identique + +namespace cpu + { + + #define uchar unsigned char + #define uint unsigned int + #define ulong unsigned long + + struct float2 + { + float x; + float y; + }; + + struct float3 + { + float x; + float y; + float z; + }; + + struct uchar4 + { + uchar x; + uchar y; + uchar z; + uchar w; + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/