From 47d0dbacaab00319ef039011096a5dfacbd83618 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 31 Mar 2013 19:30:38 +0000 Subject: Review + parsing du source pour trouver les noms des kernels à la vollée MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2013-gpudataviz/trunk@28 371a6b4a-a258-45f8-9dcc-bdd82ce0ac9d --- src/opencl_mesh_kit.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/opencl_mesh_kit.hpp') 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 #include -#include -#include #include +#include #include #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 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) { -- cgit v1.2.3