diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-03-31 19:30:38 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-03-31 19:30:38 +0000 |
commit | 47d0dbacaab00319ef039011096a5dfacbd83618 (patch) | |
tree | ccf0c9c45e893f5f57fe8e9fcd7e3e6ea50dfb90 /src/opencl_mesh_kit.hpp | |
parent | fd619ebcd1b38c39eb53453fe41d206d907749ff (diff) | |
download | 2013-gpudataviz-47d0dbacaab00319ef039011096a5dfacbd83618.tar.gz 2013-gpudataviz-47d0dbacaab00319ef039011096a5dfacbd83618.tar.bz2 2013-gpudataviz-47d0dbacaab00319ef039011096a5dfacbd83618.zip |
Review + parsing du source pour trouver les noms des kernels à la vollée
git-svn-id: file:///var/svn/2013-gpudataviz/trunk@28 371a6b4a-a258-45f8-9dcc-bdd82ce0ac9d
Diffstat (limited to 'src/opencl_mesh_kit.hpp')
-rw-r--r-- | src/opencl_mesh_kit.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/opencl_mesh_kit.hpp b/src/opencl_mesh_kit.hpp index ac3cf46..b18603b 100644 --- a/src/opencl_mesh_kit.hpp +++ b/src/opencl_mesh_kit.hpp @@ -1,8 +1,7 @@ #include <CL/opencl.h> #include <iostream> -#include <map> -#include <list> #include <cstring> +#include <map> #include <time.h> #ifndef STRINGIFY @@ -14,7 +13,7 @@ class OpenCLMeshKit public: //RAII is violated but it is really triky to do differently cl_int initCL(intptr_t gl_display, intptr_t gl_context, intptr_t gl_vbo, size_t meshWidth, size_t meshHeight, size_t groupSize); - cl_int compileKernels(std::list<std::string> names, const char source[], size_t sourceLen); + cl_int compileKernels(const char source[], size_t sourceLen); cl_int execKernel(std::string kernelName, float karg_time); void releaseKernels(); @@ -47,7 +46,7 @@ class OpenCLMeshKit }; /* Kernel for resetVBO() -To write your own kernels, take this one a make the calculus you want for z variable staying in [-0.5;0.5] if you want everything a 1*1*1 cube */ +To write your own kernels, take this one a make the calculus you want for z variable staying in [-1.0;1.0] if you want everything a 1*1*1 cube */ const char kernel_src_zero_z[]=STRINGIFY( __kernel void zero_z(__global float4 *pos, unsigned int width, unsigned int height, float time) { |