上一页 1 ··· 7 8 9 10 11 12 下一页
该文被密码保护。 阅读全文
posted @ 2014-03-03 11:20 20118281131 阅读(19) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-03-03 10:42 20118281131 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #pragma comment(lib, "osgd.lib")#pragma comment(lib, "osgViewerd.lib")#pragma comment(lib, "osgDBd.lib")#pragma comment(lib, "osgGAd.lib")const int FFT_SIZE = 256;const int PASSES = 8;cons 阅读全文
posted @ 2014-02-26 14:22 20118281131 阅读(439) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include const int FFT_SIZE = 256;const int PASSES = 8;const int N = 256;int bitReverse(int i, int N){ int j = i; int M = N; int Sum = 0; int W = 1; M = M / 2; while (M != 0) { j = (i & M) > M - 1; Sum += j * W; ... 阅读全文
posted @ 2014-02-25 15:19 20118281131 阅读(379) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include const unsigned char * loadfile(const std::string &file, int &size){ std::ifstream fs(file.c_str(), std::ios::binary); fs.seekg(0, std::ios::end); size = fs.tellg(); char * data = new char[size + 1]; fs.seekg(0); fs.read... 阅读全文
posted @ 2014-02-20 17:26 20118281131 阅读(901) 评论(0) 推荐(0) 编辑
摘要: #include #include #include const unsigned char * loadfile(const std::string &file, int &size){ std::ifstream fs(file.c_str(), std::ios::binary); fs.seekg(0, std::ios::end); size = fs.tellg(); char * data = new char[size + 1]; fs.seekg(0); fs.read(data, size); fs.close(); data... 阅读全文
posted @ 2014-02-18 17:44 20118281131 阅读(3879) 评论(1) 推荐(0) 编辑
摘要: #include #include const int DIM = 1024;typedef struct cuComplex{ float r; float i; __device__ cuComplex(float a, float b) :r(a) ,i(b) { } __device__ float magnitude2(void) { return r * r + i * i; } __device__ cuComplex operator * (const cuComplex & a) ... 阅读全文
posted @ 2014-01-22 21:07 20118281131 阅读(704) 评论(1) 推荐(0) 编辑
摘要: cuda 阅读全文
posted @ 2014-01-22 09:08 20118281131 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include const unsigned int meshSize = 16;GLuint posVertexBuffer;GLuint indexVertexBuffer;int mouseOldX, mouseOldY;int mouseButtons = 0;float rotateX = 20.0f, rotateY = 0.0f;float translateX = 0.0f, translateY = 0.0f, translateZ = -2.0f;void Init();void Display();void Resi 阅读全文
posted @ 2014-01-20 15:41 20118281131 阅读(566) 评论(0) 推荐(0) 编辑
摘要: PBO 阅读全文
posted @ 2014-01-17 14:51 20118281131 阅读(478) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页