summaryrefslogtreecommitdiff
path: root/src/opencl_mesh_kit.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opencl_mesh_kit.hpp')
-rw-r--r--src/opencl_mesh_kit.hpp7
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) {